提交 5a696d97 编写于 作者: I Ivan T. Ivanov 提交者: Chanwoo Choi

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

Release IIO channel acquired during driver probe.
Signed-off-by: NIvan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 25c0f4e4
...@@ -173,6 +173,7 @@ static int adc_jack_remove(struct platform_device *pdev) ...@@ -173,6 +173,7 @@ static int adc_jack_remove(struct platform_device *pdev)
free_irq(data->irq, data); free_irq(data->irq, data);
cancel_work_sync(&data->handler.work); cancel_work_sync(&data->handler.work);
iio_channel_release(data->chan);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册