* [PATCH 1/2] spi: xilinx: Remove .owner field for driver
@ 2014-08-13 11:52 Michal Simek
2014-08-13 11:52 ` [PATCH 2/2] spi: cadence: " Michal Simek
2014-08-13 12:33 ` [PATCH 1/2] spi: xilinx: " Mark Brown
0 siblings, 2 replies; 5+ messages in thread
From: Michal Simek @ 2014-08-13 11:52 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
monstr-pSz03upnqPeHXe+LvDLADg
Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
There is no need to init .owner field.
Based on the patch from Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
---
drivers/spi/spi-xilinx.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index 4d8efb16573d..79bd84f43430 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -471,7 +471,6 @@ static struct platform_driver xilinx_spi_driver = {
.remove = xilinx_spi_remove,
.driver = {
.name = XILINX_SPI_NAME,
- .owner = THIS_MODULE,
.of_match_table = xilinx_spi_of_match,
},
};
--
1.8.2.3
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] spi: cadence: Remove .owner field for driver
2014-08-13 11:52 [PATCH 1/2] spi: xilinx: Remove .owner field for driver Michal Simek
@ 2014-08-13 11:52 ` Michal Simek
2014-08-13 12:33 ` [PATCH 1/2] spi: xilinx: " Mark Brown
1 sibling, 0 replies; 5+ messages in thread
From: Michal Simek @ 2014-08-13 11:52 UTC (permalink / raw)
To: linux-kernel, monstr; +Cc: Mark Brown, linux-spi
[-- Attachment #1: Type: text/plain, Size: 881 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/spi/spi-cadence.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index 562ff83debd9..7b811e38c7ad 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -677,7 +677,6 @@ static struct platform_driver cdns_spi_driver = {
.remove = cdns_spi_remove,
.driver = {
.name = CDNS_SPI_NAME,
- .owner = THIS_MODULE,
.of_match_table = cdns_spi_of_match,
.pm = &cdns_spi_dev_pm_ops,
},
--
1.8.2.3
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/2] spi: xilinx: Remove .owner field for driver
2014-08-13 11:52 [PATCH 1/2] spi: xilinx: Remove .owner field for driver Michal Simek
2014-08-13 11:52 ` [PATCH 2/2] spi: cadence: " Michal Simek
@ 2014-08-13 12:33 ` Mark Brown
[not found] ` <20140813123343.GR17528-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2014-08-13 12:33 UTC (permalink / raw)
To: Michal Simek; +Cc: linux-kernel, monstr, linux-spi, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
On Wed, Aug 13, 2014 at 01:52:39PM +0200, 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."
Would it not be better to do this as a tree wide or at least subsystem
wide sweep with something like cocinelle?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-08-16 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 11:52 [PATCH 1/2] spi: xilinx: Remove .owner field for driver Michal Simek
2014-08-13 11:52 ` [PATCH 2/2] spi: cadence: " Michal Simek
2014-08-13 12:33 ` [PATCH 1/2] spi: xilinx: " Mark Brown
[not found] ` <20140813123343.GR17528-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-08-13 13:21 ` Michal Simek
2014-08-16 15:21 ` Mark Brown
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).