public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: xilinx: Remove .owner field for driver
@ 2014-08-13 12:00 Michal Simek
  2014-08-19 19:23 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2014-08-13 12:00 UTC (permalink / raw)
  To: linux-kernel, monstr
  Cc: Jonathan Cameron, Lars-Peter Clausen, Peter Meerwald, linux-iio,
	linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/iio/adc/xilinx-xadc-core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
index fd2745c62943..92541a80b041 100644
--- a/drivers/iio/adc/xilinx-xadc-core.c
+++ b/drivers/iio/adc/xilinx-xadc-core.c
@@ -1322,7 +1322,6 @@ static struct platform_driver xadc_driver = {
 	.remove = xadc_remove,
 	.driver = {
 		.name = "xadc",
-		.owner = THIS_MODULE,
 		.of_match_table = xadc_of_match_table,
 	},
 };
--
1.8.2.3


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [PATCH] iio: adc: xilinx: Remove .owner field for driver
  2014-08-13 12:00 [PATCH] iio: adc: xilinx: Remove .owner field for driver Michal Simek
@ 2014-08-19 19:23 ` Jonathan Cameron
  2014-08-20  7:38   ` sanjeev sharma
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2014-08-19 19:23 UTC (permalink / raw)
  To: Michal Simek, linux-kernel, monstr
  Cc: Lars-Peter Clausen, Peter Meerwald, linux-iio, linux-arm-kernel

On 13/08/14 13:00, Michal Simek wrote:
> There is no need to init .owner field.
> 
> Based on the patch from Peter Griffin <peter.griffin@linaro.org>
> "mmc: remove .owner field for drivers using module_platform_driver"
> 
> This patch removes the superflous .owner field for drivers which
> use the module_platform_driver API, as this is overriden in
> platform_driver_register anyway."
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Applied to the togreg branch of iio.git

Thanks,

Jonathan
> ---
> 
>  drivers/iio/adc/xilinx-xadc-core.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
> index fd2745c62943..92541a80b041 100644
> --- a/drivers/iio/adc/xilinx-xadc-core.c
> +++ b/drivers/iio/adc/xilinx-xadc-core.c
> @@ -1322,7 +1322,6 @@ static struct platform_driver xadc_driver = {
>  	.remove = xadc_remove,
>  	.driver = {
>  		.name = "xadc",
> -		.owner = THIS_MODULE,
>  		.of_match_table = xadc_of_match_table,
>  	},
>  };
> --
> 1.8.2.3
> 

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

* Re: [PATCH] iio: adc: xilinx: Remove .owner field for driver
  2014-08-19 19:23 ` Jonathan Cameron
@ 2014-08-20  7:38   ` sanjeev sharma
  0 siblings, 0 replies; 3+ messages in thread
From: sanjeev sharma @ 2014-08-20  7:38 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Michal Simek, linux-kernel, monstr, Lars-Peter Clausen,
	Peter Meerwald, linux-iio, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]

Hi Jonathan & Michael,

There are so many occurrences in IIO directory of this .owner filed and we
need to cleanup everywhere.

Regards
Sanjeev Sharma


On Wed, Aug 20, 2014 at 12:53 AM, Jonathan Cameron <jic23@kernel.org> wrote:

> On 13/08/14 13:00, Michal Simek wrote:
> > There is no need to init .owner field.
> >
> > Based on the patch from Peter Griffin <peter.griffin@linaro.org>
> > "mmc: remove .owner field for drivers using module_platform_driver"
> >
> > This patch removes the superflous .owner field for drivers which
> > use the module_platform_driver API, as this is overriden in
> > platform_driver_register anyway."
> >
> > Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> Applied to the togreg branch of iio.git
>
> Thanks,
>
> Jonathan
> > ---
> >
> >  drivers/iio/adc/xilinx-xadc-core.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/iio/adc/xilinx-xadc-core.c
> b/drivers/iio/adc/xilinx-xadc-core.c
> > index fd2745c62943..92541a80b041 100644
> > --- a/drivers/iio/adc/xilinx-xadc-core.c
> > +++ b/drivers/iio/adc/xilinx-xadc-core.c
> > @@ -1322,7 +1322,6 @@ static struct platform_driver xadc_driver = {
> >       .remove = xadc_remove,
> >       .driver = {
> >               .name = "xadc",
> > -             .owner = THIS_MODULE,
> >               .of_match_table = xadc_of_match_table,
> >       },
> >  };
> > --
> > 1.8.2.3
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

[-- Attachment #2: Type: text/html, Size: 2592 bytes --]

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

end of thread, other threads:[~2014-08-20  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 12:00 [PATCH] iio: adc: xilinx: Remove .owner field for driver Michal Simek
2014-08-19 19:23 ` Jonathan Cameron
2014-08-20  7:38   ` sanjeev sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox