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>
This commit is contained in:
Ivan T. Ivanov 2014-12-17 17:59:27 +02:00 committed by Chanwoo Choi
parent 25c0f4e42b
commit 5a696d9760

View 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;
}