Skip to content

Commit aad4742

Browse files
tititiou36jic23
authored andcommitted
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: 1b983bf ("iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC") Signed-off-by: Christophe JAILLET <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 115c215 commit aad4742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/dac/vf610_dac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ static int vf610_dac_probe(struct platform_device *pdev)
223223
return 0;
224224

225225
error_iio_device_register:
226+
vf610_dac_exit(info);
226227
clk_disable_unprepare(info->clk);
227228

228229
return ret;

0 commit comments

Comments
 (0)