Skip to content

Commit 7731074

Browse files
Joonyoung ShimSamuel Ortiz
authored andcommitted
mfd: Fix WM8994 error handling
This patch fixes wrong goto statement for error handling on probe. Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent e8343dd commit 7731074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mfd/wm8994-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ static int wm8994_device_init(struct wm8994 *wm8994, unsigned long id, int irq)
305305
wm8994->supplies);
306306
if (ret != 0) {
307307
dev_err(wm8994->dev, "Failed to get supplies: %d\n", ret);
308-
goto err_get;
308+
goto err_supplies;
309309
}
310310

311311
ret = regulator_bulk_enable(ARRAY_SIZE(wm8994_main_supplies),
312312
wm8994->supplies);
313313
if (ret != 0) {
314314
dev_err(wm8994->dev, "Failed to enable supplies: %d\n", ret);
315-
goto err_supplies;
315+
goto err_get;
316316
}
317317

318318
ret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);

0 commit comments

Comments
 (0)