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:
e8343dd
)
mfd: Fix WM8994 error handling
author
Joonyoung Shim
<
[email protected]
>
Sun, 7 Feb 2010 01:16:14 +0000
(10:16 +0900)
committer
Samuel Ortiz
<
[email protected]
>
Sun, 7 Mar 2010 21:17:19 +0000
(22:17 +0100)
This patch fixes wrong goto statement for error handling on probe.
Signed-off-by: Myungjoo Ham <
[email protected]
>
Signed-off-by: Joonyoung Shim <
[email protected]
>
Acked-by: Mark Brown <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/wm8994-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/wm8994-core.c
b/drivers/mfd/wm8994-core.c
index 299c1af1334e17c2ab8078b43cc98f7a7d0dbfed..844e1c1b7d9033c22d7c4a4b511031bb76b8f527 100644
(file)
--- a/
drivers/mfd/wm8994-core.c
+++ b/
drivers/mfd/wm8994-core.c
@@
-305,14
+305,14
@@
static int wm8994_device_init(struct wm8994 *wm8994, unsigned long id, int irq)
wm8994->supplies);
if (ret != 0) {
dev_err(wm8994->dev, "Failed to get supplies: %d\n", ret);
- goto err_
get
;
+ goto err_
supplies
;
}
ret = regulator_bulk_enable(ARRAY_SIZE(wm8994_main_supplies),
wm8994->supplies);
if (ret != 0) {
dev_err(wm8994->dev, "Failed to enable supplies: %d\n", ret);
- goto err_
supplies
;
+ goto err_
get
;
}
ret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);