extcon: adc-jack: Release IIO channel on driver remove
PATCH 1/1 extcon: adc-jack: Release IIO channel on driver remove
Release IIO channel acquired during driver probe.
Signed-off-by Ivan T. Ivanov <[email protected]>
--- drivers/extcon/extcon-adc-jack.c | 1 + 1 file changed, 1 insertion(+)
drivers/extcon/extcon-adc-jack.c +1 -0
@@ -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 ; }
Signature · 1 line
1.9.1
Chanwoo Choi
maintainerQuoted 13 lines · Ivan T. Ivanov
Release IIO channel acquired during driver probe.
Signed-off-by Ivan T. Ivanov <[email protected]>--- drivers/extcon/extcon-adc-jack.c | 1 + 1 file changed, 1 insertion(+)drivers/extcon/extcon-adc-jack.c +0
-0
drivers/extcon/extcon-adc-jack.c static int adc_jack_remove(struct platform_device *pdev) · line 179
Quoted 7 lines
drivers/extcon/extcon-adc-jack.c +1
-0@@ -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 ; }
Applied it.
Thanks,
Chanwoo Choi