patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / sound / ppc / keywest.c
index cf523a6..c490489 100644 (file)
@@ -79,12 +79,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
 
        new_client->id = keywest_ctx->id++; /* Automatically unique */
        keywest_ctx->client = new_client;
-
-       if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) {
-               snd_printk(KERN_ERR "tumbler: cannot initialize the MCS\n");
-               goto __err;
-       }
-
+       
        /* Tell the i2c layer a new client has arrived */
        if (i2c_attach_client(new_client)) {
                snd_printk(KERN_ERR "tumbler: cannot attach i2c client\n");
@@ -121,6 +116,17 @@ void snd_pmac_keywest_cleanup(pmac_keywest_t *i2c)
        }
 }
 
+int __init snd_pmac_tumbler_post_init(void)
+{
+       int err;
+       
+       if ((err = keywest_ctx->init_client(keywest_ctx)) < 0) {
+               snd_printk(KERN_ERR "tumbler: %i :cannot initialize the MCS\n", err);
+               return err;
+       }
+       return 0;
+}
+
 /* exported */
 int __init snd_pmac_keywest_init(pmac_keywest_t *i2c)
 {