mfd: wm8994-core: Fix error path in wm8994_device_init
authorAnthony Brandon <anthony@amarulasolutions.com>
Thu, 14 Jun 2018 11:57:14 +0000 (13:57 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 07:13:24 +0000 (08:13 +0100)
commitdf47df55911b31863bcbed93df163cb27298e311
tree3e16e5424fc79a1fbaef2a6f9155dad38f6ccc8c
parentbf1cafa18be3b73ad30a3bbf2c3dae5ef333189a
mfd: wm8994-core: Fix error path in wm8994_device_init

For some errors, the wm8994_device_init function was returning or
jumping to the wrong point in the error path.

Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm8994-core.c