summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-04-26 21:44:03 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-02 20:17:08 +0200
commitaad4742fbf0a560c25827adb58695a4497ffc204 (patch)
tree9025117279fc61138abf63a8eb13cad102a2e9f5 /drivers
parentiio: imu: st_lsm6dsx: unlock on error in st_lsm6dsx_shub_write_raw() (diff)
downloadlinux-aad4742fbf0a560c25827adb58695a4497ffc204.tar.xz
linux-aad4742fbf0a560c25827adb58695a4497ffc204.zip
iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()'
A call to 'vf610_dac_exit()' is missing in an error handling path. Fixes: 1b983bf42fad ("iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/dac/vf610_dac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/vf610_dac.c b/drivers/iio/dac/vf610_dac.c
index 71f8a5c471c4..7f1e9317c3f3 100644
--- a/drivers/iio/dac/vf610_dac.c
+++ b/drivers/iio/dac/vf610_dac.c
@@ -223,6 +223,7 @@ static int vf610_dac_probe(struct platform_device *pdev)
return 0;
error_iio_device_register:
+ vf610_dac_exit(info);
clk_disable_unprepare(info->clk);
return ret;