summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIvan T. Ivanov <iivanov@mm-sol.com>2014-12-17 16:59:27 +0100
committerChanwoo Choi <cw00.choi@samsung.com>2015-01-26 05:47:55 +0100
commit5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98 (patch)
tree11bcebac8ce4d59f5396c0b119d531b7638b3b01 /drivers
parentextcon: Remove duplicated include from extcon-class.c (diff)
downloadlinux-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.c1
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;
}