linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: ti_am335x_adc: add missing .driver_module to struct iio_info
@ 2013-07-06  4:20 Wei Yongjun
  2013-07-06  9:37 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-07-06  4:20 UTC (permalink / raw)
  To: jic23, gregkh, sameo, rachna, bigeasy; +Cc: yongjun_wei, linux-iio

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Add missing .driver_module of struct iio_info. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/iio/adc/ti_am335x_adc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index 5f9a7e7..985f588 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
 
 static const struct iio_info tiadc_info = {
 	.read_raw = &tiadc_read_raw,
+	.driver_module = THIS_MODULE,
 };
 
 static int tiadc_probe(struct platform_device *pdev)


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

* Re: [PATCH] iio: ti_am335x_adc: add missing .driver_module to struct iio_info
  2013-07-06  4:20 [PATCH] iio: ti_am335x_adc: add missing .driver_module to struct iio_info Wei Yongjun
@ 2013-07-06  9:37 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-07-06  9:37 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: jic23, gregkh, sameo, rachna, bigeasy, yongjun_wei, linux-iio

On 07/06/2013 05:20 AM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Add missing .driver_module of struct iio_info. This prevents the
> module from being removed from underneath its users.
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Applied to the fixes-togreg branch of iio.git

Thanks,
> ---
>  drivers/iio/adc/ti_am335x_adc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
> index 5f9a7e7..985f588 100644
> --- a/drivers/iio/adc/ti_am335x_adc.c
> +++ b/drivers/iio/adc/ti_am335x_adc.c
> @@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
>  
>  static const struct iio_info tiadc_info = {
>  	.read_raw = &tiadc_read_raw,
> +	.driver_module = THIS_MODULE,
>  };
>  
>  static int tiadc_probe(struct platform_device *pdev)
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

end of thread, other threads:[~2013-07-06  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-06  4:20 [PATCH] iio: ti_am335x_adc: add missing .driver_module to struct iio_info Wei Yongjun
2013-07-06  9:37 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).