aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/s3c24xx/neo1973_wm8753.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
index 5cbbe988e1f..4ac2aae5ca0 100644
--- a/sound/soc/s3c24xx/neo1973_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
@@ -698,9 +698,10 @@ static int __init neo1973_init(void)
}
ret = i2c_add_driver(&lm4857_i2c_driver);
-
- if (ret != 0)
+ if (ret != 0) {
+ printk(KERN_ERR "can't add i2c driver");
platform_device_unregister(neo1973_snd_device);
+ }
return ret;
}