diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-04-26 21:44:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-27 16:43:11 +0200 |
commit | d41008b96fb2c1e91aa7ce47c1ec381c5ad06e16 (patch) | |
tree | e2f0d9f1b1cfd1aee3b10aa3422a837869f59952 | |
parent | a33d6c4a48554836ca2167439baeb60d8f37c89b (diff) |
iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()'
commit aad4742fbf0a560c25827adb58695a4497ffc204 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/iio/dac/vf610_dac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/vf610_dac.c b/drivers/iio/dac/vf610_dac.c index c4ec7779b394..190a7c1c5604 100644 --- a/drivers/iio/dac/vf610_dac.c +++ b/drivers/iio/dac/vf610_dac.c @@ -235,6 +235,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; |