Merge branch 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
[sfrench/cifs-2.6.git] / sound / ppc / keywest.c
index 59482a4cd44641ecd8d9ab253c128c93ae1dd3a3..272ae38e9b1883154f7574000270a23b84d48b84 100644 (file)
@@ -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;