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:
cab87f0
)
regulator: palmas: Drop regulator_unregister while using devm_regulator_register
author
Axel Lin
<axel.lin@ingics.com>
Thu, 5 Sep 2013 03:31:25 +0000
(11:31 +0800)
committer
Mark Brown
<broonie@linaro.org>
Mon, 16 Sep 2013 23:28:44 +0000
(
00:28
+0100)
Commmit
af40a94aba
"regulator: palmas: Use devm_regulator_register" missed
removing a regulator_unregister() call if palmas_extreg_init falis. Fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/palmas-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/palmas-regulator.c
b/drivers/regulator/palmas-regulator.c
index 6c9670ff6be57c068c4af9d2bc68899bbf68b6a0..b5278ac4e6bde82aae461c7a44e7600db38c1683 100644
(file)
--- a/
drivers/regulator/palmas-regulator.c
+++ b/
drivers/regulator/palmas-regulator.c
@@
-1037,10
+1037,8
@@
static int palmas_regulators_probe(struct platform_device *pdev)
else
ret = palmas_extreg_init(palmas,
id, reg_init);
- if (ret) {
- regulator_unregister(pmic->rdev[id]);
+ if (ret)
return ret;
- }
}
}
}