summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorIvan T. Ivanov <iivanov@mm-sol.com>2014-12-17 17:59:27 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2015-01-26 13:47:55 +0900
commit5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98 (patch)
tree11bcebac8ce4d59f5396c0b119d531b7638b3b01 /drivers/extcon
parent25c0f4e42b1d6d19cb20a98ae59fbee57de1d268 (diff)
downloadop-kernel-dev-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.zip
op-kernel-dev-5a696d9760fe99bd96dfc6ac336b7e2dc9b21c98.tar.gz
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.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 5d7ab57..2bb82e5 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;
}
OpenPOWER on IntegriCloud