linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: cadence: Remove .owner field for driver
@ 2014-08-13 11:56 Michal Simek
  2014-08-13 11:56 ` [PATCH 2/2] i2c: i2c-xiic: " Michal Simek
       [not found] ` <c076984af7e65c433fdfd3a3b0f8d20da2c18013.1407931005.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Michal Simek @ 2014-08-13 11:56 UTC (permalink / raw)
  To: linux-kernel, monstr; +Cc: Wolfram Sang, linux-arm-kernel, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 928 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/i2c/busses/i2c-cadence.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-cadence.c b/drivers/i2c/busses/i2c-cadence.c
index 63f3f03ecc9b..04d0a7e449ef 100644
--- a/drivers/i2c/busses/i2c-cadence.c
+++ b/drivers/i2c/busses/i2c-cadence.c
@@ -890,7 +890,6 @@ MODULE_DEVICE_TABLE(of, cdns_i2c_of_match);
 static struct platform_driver cdns_i2c_drv = {
 	.driver = {
 		.name  = DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = cdns_i2c_of_match,
 		.pm = &cdns_i2c_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

end of thread, other threads:[~2014-11-07 18:15 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:56 [PATCH 1/2] i2c: cadence: Remove .owner field for driver Michal Simek
2014-08-13 11:56 ` [PATCH 2/2] i2c: i2c-xiic: " Michal Simek
     [not found] ` <c076984af7e65c433fdfd3a3b0f8d20da2c18013.1407931005.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2014-09-20  9:11   ` [PATCH 1/2] i2c: cadence: " Wolfram Sang
2014-09-22  9:36     ` Michal Simek
2014-11-07 18:15       ` Wolfram Sang

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).