1
0
Fork 0

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>
hifive-unleashed-5.1
Ivan T. Ivanov 2014-12-17 17:59:27 +02:00 committed by Chanwoo Choi
parent 25c0f4e42b
commit 5a696d9760
1 changed files with 1 additions and 0 deletions

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