Skip to contentSkip to conversation

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

PATCH In review Ivan T. Ivanov 2 participants 2 messages Dec 17, 2014 – Dec 18, 2014 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: adc-jack: Release IIO channel on driver remove

Release IIO channel acquired during driver probe.

---
 drivers/extcon/extcon-adc-jack.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-adc-jack.c +1 -0
index d860229..ce8c6ff 100644
@@ -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
maintainer
#1 lore raw
Quoted 13 lines · Ivan T. Ivanov

Release IIO channel acquired during driver probe.

---
 drivers/extcon/extcon-adc-jack.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-adc-jack.c +0 -0
index d860229..ce8c6ff 100644

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