Commit 5a696d97 authored by Ivan T. Ivanov's avatar Ivan T. Ivanov Committed by Chanwoo Choi

extcon: adc-jack: Release IIO channel on driver remove

Release IIO channel acquired during driver probe.
Signed-off-by: default avatarIvan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 25c0f4e4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment