From 0189ff18b9354352be1bdc9f1741ead538196adf Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 16 Oct 2006 14:37:31 +0200 Subject: [PATCH] [PATCH] ALSA: powermac - Fix Oops when conflicting with aoa driver Fixed Oops when conflictin with aoa driver due to lack of i2c initialization. Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- sound/ppc/keywest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 59482a4cd4464..272ae38e9b188 100644 --- a/sound/ppc/keywest.c +++ b/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; -- 2.47.2