projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
979da89
)
wm8350-regulator: fix wm8350_register_regulator error handling
author
Axel Lin
<
[email protected]
>
Mon, 26 Jul 2010 02:41:58 +0000
(10:41 +0800)
committer
Liam Girdwood
<
[email protected]
>
Tue, 27 Jul 2010 10:29:27 +0000
(11:29 +0100)
In the case of platform_device_add() fail, we should call
platform_device_put() instead of platform_device_del()
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Mark Brown <
[email protected]
>
Signed-off-by: Liam Girdwood <
[email protected]
>
drivers/regulator/wm8350-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/wm8350-regulator.c
b/drivers/regulator/wm8350-regulator.c
index 723cd1fb4867191078e3488ce3ff8267c8ec8f63..0e6ed7db93643436eadaeee5fbc48b7fd8ed599f 100644
(file)
--- a/
drivers/regulator/wm8350-regulator.c
+++ b/
drivers/regulator/wm8350-regulator.c
@@
-1495,7
+1495,7
@@
int wm8350_register_regulator(struct wm8350 *wm8350, int reg,
if (ret != 0) {
dev_err(wm8350->dev, "Failed to register regulator %d: %d\n",
reg, ret);
- platform_device_
del
(pdev);
+ platform_device_
put
(pdev);
wm8350->pmic.pdev[reg] = NULL;
}