X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fppc%2Fkeywest.c;h=272ae38e9b1883154f7574000270a23b84d48b84;hb=946b92437e550d6ed80213bf54a1f383e141aede;hp=59482a4cd44641ecd8d9ab253c128c93ae1dd3a3;hpb=c34c07d6946ec8969fa71ba03dbb95091f4eb9d3;p=linux-2.6 diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 59482a4cd4..272ae38e9b 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;