extcon: adc-jack: Release IIO channel on driver remove
authorIvan T. Ivanov <iivanov@mm-sol.com>
Wed, 17 Dec 2014 15:59:27 +0000 (17:59 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Jan 2015 04:47:55 +0000 (13:47 +0900)
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>
drivers/extcon/extcon-adc-jack.c

index 5d7ab57..2bb82e5 100644 (file)
@@ -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;
 }