From c531bf3ad3bb4e50d5d43be149f8f8719639f7d5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Sun, 17 Sep 2006 22:00:51 +0200 Subject: [PATCH] --- yaml --- r: 34951 b: refs/heads/master c: 783eaf4671a4f5a95102aedb5a45e1f8adab945c h: refs/heads/master i: 34949: 4b81c566762562a0668705513ad96de930d052d1 34947: 7d93e3713dce80ccf3871180c42cde18d5d4ffac 34943: 6abb836bb1f458bf5463b4217151b9046d2d1381 v: v3 --- [refs] | 2 +- trunk/sound/ppc/keywest.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f0548cb2d688..30c0cb1acfb6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 307192065c55dbc70159037c1e3006a9f761192b +refs/heads/master: 783eaf4671a4f5a95102aedb5a45e1f8adab945c diff --git a/trunk/sound/ppc/keywest.c b/trunk/sound/ppc/keywest.c index 59482a4cd446..272ae38e9b18 100644 --- a/trunk/sound/ppc/keywest.c +++ b/trunk/sound/ppc/keywest.c @@ -117,6 +117,9 @@ int __init snd_pmac_tumbler_post_init(void) { int err; + if (!keywest_ctx || !keywest_ctx->client) + return -ENXIO; + if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) { snd_printk(KERN_ERR "tumbler: %i :cannot initialize the MCS\n", err); return err;