projects
/
GitHub
/
LineageOS
/
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:
45fcac1
)
mfd: sec-core: Remove explicit call to mfd_remove_devices
author
Leon Romanovsky
<leon@leon.nu>
Wed, 15 May 2013 15:00:48 +0000
(18:00 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 11 Jun 2013 17:27:51 +0000
(19:27 +0200)
In case mfd_add_devices will fail, it will call to mfd_remove_devices
by itself and return non-zero value.
Signed-off-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sec-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/sec-core.c
b/drivers/mfd/sec-core.c
index 77ee26ef594176aceb8b5d8a2518b5eb13f64479..cc896d1c1cddb13569d54b0cb070b07780410f07 100644
(file)
--- a/
drivers/mfd/sec-core.c
+++ b/
drivers/mfd/sec-core.c
@@
-230,13
+230,12
@@
static int sec_pmic_probe(struct i2c_client *i2c,
BUG();
}
- if (ret
< 0
)
+ if (ret)
goto err;
return ret;
err:
- mfd_remove_devices(sec_pmic->dev);
sec_irq_exit(sec_pmic);
i2c_unregister_device(sec_pmic->rtc);
return ret;