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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}