Explorar o código

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>
Ivan T. Ivanov %!s(int64=10) %!d(string=hai) anos
pai
achega
5a696d9760
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/extcon/extcon-adc-jack.c

+ 1 - 0
drivers/extcon/extcon-adc-jack.c

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