Skip to content

Commit

Permalink
[ALSA] powermac - Fix Oops when conflicting with aoa driver
Browse files Browse the repository at this point in the history
Fixed Oops when conflictin with aoa driver due to lack of
i2c initialization.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 3071920 commit 783eaf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/ppc/keywest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 783eaf4

Please sign in to comment.