diff options
author | Ivan T. Ivanov <iivanov@mm-sol.com> | 2014-12-17 17:59:27 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-01-26 13:47:55 +0900 |
commit | 5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98 (patch) | |
tree | 11bcebac8ce4d59f5396c0b119d531b7638b3b01 /drivers/extcon | |
parent | 25c0f4e42b1d6d19cb20a98ae59fbee57de1d268 (diff) | |
download | linux-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.tar.bz2 |
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/extcon')
-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; } |