diff options
author | Ivan T. Ivanov <iivanov@mm-sol.com> | 2014-12-17 16:59:27 +0100 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-01-26 05:47:55 +0100 |
commit | 5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98 (patch) | |
tree | 11bcebac8ce4d59f5396c0b119d531b7638b3b01 /drivers | |
parent | extcon: Remove duplicated include from extcon-class.c (diff) | |
download | linux-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.tar.xz linux-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.zip |
extcon: adc-jack: Release IIO channel on driver remove
Release IIO channel acquired during driver probe.
Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/extcon/extcon-adc-jack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c index 5d7ab577fba9..2bb82e55065a 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c @@ -173,6 +173,7 @@ static int adc_jack_remove(struct platform_device *pdev) free_irq(data->irq, data); cancel_work_sync(&data->handler.work); + iio_channel_release(data->chan); return 0; } |