projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d54dc
)
ASoC: uda1380: Return proper error in uda1380_modinit failure path
author
Axel Lin
<axel.lin@gmail.com>
Sun, 4 Dec 2011 11:35:20 +0000
(19:35 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 4 Dec 2011 23:47:15 +0000
(23:47 +0000)
Return proper error for uda1380_modinit if i2c_add_driver() fails.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/uda1380.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/uda1380.c
b/sound/soc/codecs/uda1380.c
index c5ca8cfea60f80f8de27cc5d12ad55f69bd900f2..0441893e270ed2b5621833fecc997b6b20f85159 100644
(file)
--- a/
sound/soc/codecs/uda1380.c
+++ b/
sound/soc/codecs/uda1380.c
@@
-863,13
+863,13
@@
static struct i2c_driver uda1380_i2c_driver = {
static int __init uda1380_modinit(void)
{
- int ret;
+ int ret
= 0
;
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
ret = i2c_add_driver(&uda1380_i2c_driver);
if (ret != 0)
pr_err("Failed to register UDA1380 I2C driver: %d\n", ret);
#endif
- return
0
;
+ return
ret
;
}
module_init(uda1380_modinit);