OSDN Git Service

mfd: mxs-lradc: Fix error handling in mxs_lradc_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 13 Oct 2017 22:06:56 +0000 (01:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:33 +0000 (10:10 +0100)
commitaeb01451f9e2d3e9b2ac2ad30426c68957c307ed
tree34c5acfbe12cda0f8f4a5b4a45e702c99cb2ee01
parent8268e93b2b879912ae84952acef17e4c78f3b66d
mfd: mxs-lradc: Fix error handling in mxs_lradc_probe()

[ Upstream commit 362741a21a5c4b9ee31e75ce28d63c6d238a745c ]

There is the only path, where mxs_lradc_probe() leaves clk undisabled,
since it does return instead of goto err_clk.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/mxs-lradc.c