summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-adc-jack.c
diff options
context:
space:
mode:
authorIvan T. Ivanov2014-12-17 16:59:27 +0100
committerChanwoo Choi2015-01-26 05:47:55 +0100
commit5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98 (patch)
tree11bcebac8ce4d59f5396c0b119d531b7638b3b01 /drivers/extcon/extcon-adc-jack.c
parentextcon: Remove duplicated include from extcon-class.c (diff)
downloadkernel-qcow2-linux-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.tar.gz
kernel-qcow2-linux-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.tar.xz
kernel-qcow2-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/extcon/extcon-adc-jack.c')
-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;
}