All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] extcon: adc-jack: Release IIO channel on driver remove
@ 2014-12-17 15:59 Ivan T. Ivanov
  2014-12-18  0:30 ` Chanwoo Choi
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan T. Ivanov @ 2014-12-17 15:59 UTC (permalink / raw)
  To: MyungJoo Ham, Chanwoo Choi, Jonathan Cameron; +Cc: Ivan T. Ivanov, linux-kernel

Release IIO channel acquired during driver probe.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 drivers/extcon/extcon-adc-jack.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index d860229..ce8c6ff 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/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;
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] extcon: adc-jack: Release IIO channel on driver remove
  2014-12-17 15:59 [PATCH] extcon: adc-jack: Release IIO channel on driver remove Ivan T. Ivanov
@ 2014-12-18  0:30 ` Chanwoo Choi
  0 siblings, 0 replies; 2+ messages in thread
From: Chanwoo Choi @ 2014-12-18  0:30 UTC (permalink / raw)
  To: Ivan T. Ivanov; +Cc: MyungJoo Ham, Jonathan Cameron, linux-kernel

On 12/18/2014 12:59 AM, Ivan T. Ivanov wrote:
> Release IIO channel acquired during driver probe.
> 
> Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
> ---
>  drivers/extcon/extcon-adc-jack.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
> index d860229..ce8c6ff 100644
> --- a/drivers/extcon/extcon-adc-jack.c
> +++ b/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;
>  }
> 

Applied it.

Thanks,
Chanwoo Choi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-18  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 15:59 [PATCH] extcon: adc-jack: Release IIO channel on driver remove Ivan T. Ivanov
2014-12-18  0:30 ` Chanwoo Choi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.