X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=sound%2Fppc%2Fkeywest.c;h=272ae38e9b1883154f7574000270a23b84d48b84;hb=ded1504dfa0083661fdd1a0a5f021cb7313ffe04;hp=59482a4cd44641ecd8d9ab253c128c93ae1dd3a3;hpb=a4b47ab9464a8200528fad3101668abdd7379cf9;p=mv-sheeva.git diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 59482a4cd44..272ae38e9b1 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;