public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] extcon: adc-jack: Release IIO channel on driver remove
@ 2014-12-17 15:59 Ivan T. Ivanov
  2014-12-18  0:30 ` Chanwoo Choi
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan T. Ivanov @ 2014-12-17 15:59 UTC (permalink / raw)
  To: MyungJoo Ham, Chanwoo Choi, Jonathan Cameron; +Cc: Ivan T. Ivanov, linux-kernel

Release IIO channel acquired during driver probe.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 drivers/extcon/extcon-adc-jack.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index d860229..ce8c6ff 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;
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-18  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17 15:59 [PATCH] extcon: adc-jack: Release IIO channel on driver remove Ivan T. Ivanov
2014-12-18  0:30 ` Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox