X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=sound%2Fppc%2Fkeywest.c;h=c4904895d94d05294cc1d0f9ec9c378f34b958a1;hp=cf523a6f61aff7e8c9a43c7df75740edb063e5c5;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9 diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index cf523a6f6..c4904895d 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c @@ -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) {