i2c: busses: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:37 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:37 +0000 (16:20 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
49 files changed:
drivers/i2c/busses/i2c-at91.c
drivers/i2c/busses/i2c-au1550.c
drivers/i2c/busses/i2c-bcm-kona.c
drivers/i2c/busses/i2c-bcm2835.c
drivers/i2c/busses/i2c-bfin-twi.c
drivers/i2c/busses/i2c-cadence.c
drivers/i2c/busses/i2c-cbus-gpio.c
drivers/i2c/busses/i2c-cpm.c
drivers/i2c/busses/i2c-davinci.c
drivers/i2c/busses/i2c-designware-platdrv.c
drivers/i2c/busses/i2c-efm32.c
drivers/i2c/busses/i2c-exynos5.c
drivers/i2c/busses/i2c-gpio.c
drivers/i2c/busses/i2c-highlander.c
drivers/i2c/busses/i2c-ibm_iic.c
drivers/i2c/busses/i2c-imx.c
drivers/i2c/busses/i2c-iop3xx.c
drivers/i2c/busses/i2c-isch.c
drivers/i2c/busses/i2c-kempld.c
drivers/i2c/busses/i2c-mpc.c
drivers/i2c/busses/i2c-mv64xxx.c
drivers/i2c/busses/i2c-mxs.c
drivers/i2c/busses/i2c-ocores.c
drivers/i2c/busses/i2c-octeon.c
drivers/i2c/busses/i2c-omap.c
drivers/i2c/busses/i2c-parport-light.c
drivers/i2c/busses/i2c-pca-platform.c
drivers/i2c/busses/i2c-pmcmsp.c
drivers/i2c/busses/i2c-pnx.c
drivers/i2c/busses/i2c-puv3.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-qup.c
drivers/i2c/busses/i2c-rcar.c
drivers/i2c/busses/i2c-riic.c
drivers/i2c/busses/i2c-rk3x.c
drivers/i2c/busses/i2c-s3c2410.c
drivers/i2c/busses/i2c-sh7760.c
drivers/i2c/busses/i2c-sh_mobile.c
drivers/i2c/busses/i2c-simtec.c
drivers/i2c/busses/i2c-sirf.c
drivers/i2c/busses/i2c-st.c
drivers/i2c/busses/i2c-stu300.c
drivers/i2c/busses/i2c-sun6i-p2wi.c
drivers/i2c/busses/i2c-tegra.c
drivers/i2c/busses/i2c-versatile.c
drivers/i2c/busses/i2c-wmt.c
drivers/i2c/busses/i2c-xiic.c
drivers/i2c/busses/i2c-xlr.c
drivers/i2c/busses/scx200_acb.c

index 917d545..b39e0e8 100644 (file)
@@ -851,7 +851,6 @@ static struct platform_driver at91_twi_driver = {
        .id_table       = at91_twi_devtypes,
        .driver         = {
                .name   = "at91_i2c",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(atmel_twi_dt_ids),
                .pm     = at91_twi_pm_ops,
        },
index 8762458..74faf63 100644 (file)
@@ -417,7 +417,6 @@ static const struct dev_pm_ops i2c_au1550_pmops = {
 static struct platform_driver au1xpsc_smbus_driver = {
        .driver = {
                .name   = "au1xpsc_smbus",
-               .owner  = THIS_MODULE,
                .pm     = AU1XPSC_SMBUS_PMOPS,
        },
        .probe          = i2c_au1550_probe,
index 18a74a6..2c9d9b1 100644 (file)
@@ -895,7 +895,6 @@ MODULE_DEVICE_TABLE(of, bcm_kona_i2c_of_match);
 static struct platform_driver bcm_kona_i2c_driver = {
        .driver = {
                   .name = "bcm-kona-i2c",
-                  .owner = THIS_MODULE,
                   .of_match_table = bcm_kona_i2c_of_match,
                   },
        .probe = bcm_kona_i2c_probe,
index 4b8ecd0..5d6feb9 100644 (file)
@@ -313,7 +313,6 @@ static struct platform_driver bcm2835_i2c_driver = {
        .remove         = bcm2835_i2c_remove,
        .driver         = {
                .name   = "i2c-bcm2835",
-               .owner  = THIS_MODULE,
                .of_match_table = bcm2835_i2c_of_match,
        },
 };
index 067c161..af162b4 100644 (file)
@@ -717,7 +717,6 @@ static struct platform_driver i2c_bfin_twi_driver = {
        .remove         = i2c_bfin_twi_remove,
        .driver         = {
                .name   = "i2c-bfin-twi",
-               .owner  = THIS_MODULE,
                .pm     = I2C_BFIN_TWI_PM_OPS,
        },
 };
index 63f3f03..04d0a7e 100644 (file)
@@ -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,
        },
index bdf040f..b4f91e4 100644 (file)
@@ -287,7 +287,6 @@ static struct platform_driver cbus_i2c_driver = {
        .probe  = cbus_i2c_probe,
        .remove = cbus_i2c_remove,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "i2c-cbus-gpio",
                .of_match_table = of_match_ptr(i2c_cbus_dt_ids),
        },
index f3b89a4..a08069c 100644 (file)
@@ -720,7 +720,6 @@ static struct platform_driver cpm_i2c_driver = {
        .remove         = cpm_i2c_remove,
        .driver = {
                .name = "fsl-i2c-cpm",
-               .owner = THIS_MODULE,
                .of_match_table = cpm_i2c_match,
        },
 };
index 4d96147..dcf671b 100644 (file)
@@ -793,7 +793,6 @@ static struct platform_driver davinci_i2c_driver = {
        .remove         = davinci_i2c_remove,
        .driver         = {
                .name   = "i2c_davinci",
-               .owner  = THIS_MODULE,
                .pm     = davinci_i2c_pm_ops,
                .of_match_table = davinci_i2c_of_match,
        },
index a743115..cb0667c 100644 (file)
@@ -331,7 +331,6 @@ static struct platform_driver dw_i2c_driver = {
        .remove = dw_i2c_remove,
        .driver         = {
                .name   = "i2c_designware",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(dw_i2c_of_match),
                .acpi_match_table = ACPI_PTR(dw_i2c_acpi_match),
                .pm     = &dw_i2c_dev_pm_ops,
index 10b8323..8eff627 100644 (file)
@@ -473,7 +473,6 @@ static struct platform_driver efm32_i2c_driver = {
 
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = efm32_i2c_dt_ids,
        },
 };
index 81e6263..9306a5c 100644 (file)
@@ -861,7 +861,6 @@ static struct platform_driver exynos5_i2c_driver = {
        .probe          = exynos5_i2c_probe,
        .remove         = exynos5_i2c_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "exynos5-hsi2c",
                .pm     = &exynos5_i2c_dev_pm_ops,
                .of_match_table = exynos5_i2c_match,
index 933f1e4..34cfc0e 100644 (file)
@@ -260,7 +260,6 @@ MODULE_DEVICE_TABLE(of, i2c_gpio_dt_ids);
 static struct platform_driver i2c_gpio_driver = {
        .driver         = {
                .name   = "i2c-gpio",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(i2c_gpio_dt_ids),
        },
        .probe          = i2c_gpio_probe,
index 512fcfa..56dc69e 100644 (file)
@@ -456,7 +456,6 @@ static int highlander_i2c_remove(struct platform_device *pdev)
 static struct platform_driver highlander_i2c_driver = {
        .driver         = {
                .name   = "i2c-highlander",
-               .owner  = THIS_MODULE,
        },
 
        .probe          = highlander_i2c_probe,
index 274312c..722f839 100644 (file)
@@ -802,7 +802,6 @@ static const struct of_device_id ibm_iic_match[] = {
 static struct platform_driver ibm_iic_driver = {
        .driver = {
                .name = "ibm-iic",
-               .owner = THIS_MODULE,
                .of_match_table = ibm_iic_match,
        },
        .probe  = iic_probe,
index c48e46a..3c88191 100644 (file)
@@ -777,7 +777,6 @@ static struct platform_driver i2c_imx_driver = {
        .remove = i2c_imx_remove,
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = i2c_imx_dt_ids,
        },
        .id_table       = imx_i2c_devtype,
index 3d16c2f..72d6161 100644 (file)
@@ -516,7 +516,6 @@ static struct platform_driver iop3xx_i2c_driver = {
        .probe          = iop3xx_i2c_probe,
        .remove         = iop3xx_i2c_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "IOP3xx-I2C",
        },
 };
index cf99dbf..efd8ed6 100644 (file)
@@ -313,7 +313,6 @@ static int smbus_sch_remove(struct platform_device *pdev)
 static struct platform_driver smbus_sch_driver = {
        .driver = {
                .name = "isch_smbus",
-               .owner = THIS_MODULE,
        },
        .probe          = smbus_sch_probe,
        .remove         = smbus_sch_remove,
index af8f65f..25993d2 100644 (file)
@@ -394,7 +394,6 @@ static int kempld_i2c_resume(struct platform_device *pdev)
 static struct platform_driver kempld_i2c_driver = {
        .driver = {
                .name = "kempld-i2c",
-               .owner = THIS_MODULE,
        },
        .probe          = kempld_i2c_probe,
        .remove         = kempld_i2c_remove,
index 0edf630..795d25e 100644 (file)
@@ -813,7 +813,6 @@ static struct platform_driver mpc_i2c_driver = {
        .probe          = fsl_i2c_probe,
        .remove         = fsl_i2c_remove,
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRV_NAME,
                .of_match_table = mpc_i2c_of_match,
                .pm = MPC_I2C_PM_OPS,
index 2f64273..373f6d4 100644 (file)
@@ -925,7 +925,6 @@ static struct platform_driver mv64xxx_i2c_driver = {
        .probe  = mv64xxx_i2c_probe,
        .remove = mv64xxx_i2c_remove,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = MV64XXX_I2C_CTLR_NAME,
                .of_match_table = mv64xxx_i2c_of_match_table,
        },
index 07e1be6..a13aead 100644 (file)
@@ -893,7 +893,6 @@ static int mxs_i2c_remove(struct platform_device *pdev)
 static struct platform_driver mxs_i2c_driver = {
        .driver = {
                   .name = DRIVER_NAME,
-                  .owner = THIS_MODULE,
                   .of_match_table = mxs_i2c_dt_ids,
                   },
        .probe = mxs_i2c_probe,
index 2a4fe0b..7249b5b 100644 (file)
@@ -480,7 +480,6 @@ static struct platform_driver ocores_i2c_driver = {
        .probe   = ocores_i2c_probe,
        .remove  = ocores_i2c_remove,
        .driver  = {
-               .owner = THIS_MODULE,
                .name = "ocores-i2c",
                .of_match_table = ocores_i2c_match,
                .pm = OCORES_I2C_PM,
index 81042b0..6e75e01 100644 (file)
@@ -623,7 +623,6 @@ static struct platform_driver octeon_i2c_driver = {
        .probe          = octeon_i2c_probe,
        .remove         = octeon_i2c_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = DRV_NAME,
                .of_match_table = octeon_i2c_match,
        },
index 0dffb0e..d20c6bc 100644 (file)
@@ -1338,7 +1338,6 @@ static struct platform_driver omap_i2c_driver = {
        .remove         = omap_i2c_remove,
        .driver         = {
                .name   = "omap_i2c",
-               .owner  = THIS_MODULE,
                .pm     = OMAP_I2C_PM_OPS,
                .of_match_table = of_match_ptr(omap_i2c_of_match),
        },
index 62f55fe..96da36f 100644 (file)
@@ -187,7 +187,6 @@ static int i2c_parport_remove(struct platform_device *pdev)
 
 static struct platform_driver i2c_parport_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = DRVNAME,
        },
        .probe          = i2c_parport_probe,
index 845f125..6336f02 100644 (file)
@@ -280,7 +280,6 @@ static struct platform_driver i2c_pca_pf_driver = {
        .remove = i2c_pca_pf_remove,
        .driver = {
                .name = "i2c-pca-platform",
-               .owner = THIS_MODULE,
        },
 };
 
index 8564768..702d05b 100644 (file)
@@ -628,7 +628,6 @@ static struct platform_driver pmcmsptwi_driver = {
        .remove = pmcmsptwi_remove,
        .driver = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
        },
 };
 
index dc7ff82..e814a36 100644 (file)
@@ -751,7 +751,6 @@ MODULE_DEVICE_TABLE(of, i2c_pnx_of_match);
 static struct platform_driver i2c_pnx_driver = {
        .driver = {
                .name = "pnx-i2c",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(i2c_pnx_of_match),
                .pm = PNX_I2C_PM,
        },
index c83fc3c..82b6f02 100644 (file)
@@ -270,7 +270,6 @@ static struct platform_driver puv3_i2c_driver = {
        .remove         = puv3_i2c_remove,
        .driver         = {
                .name   = "PKUnity-v3-I2C",
-               .owner  = THIS_MODULE,
                .pm     = PUV3_I2C_PM,
        }
 };
index be671f7..495589a 100644 (file)
@@ -1328,7 +1328,6 @@ static struct platform_driver i2c_pxa_driver = {
        .remove         = i2c_pxa_remove,
        .driver         = {
                .name   = "pxa2xx-i2c",
-               .owner  = THIS_MODULE,
                .pm     = I2C_PXA_DEV_PM_OPS,
                .of_match_table = i2c_pxa_dt_ids,
        },
index 092d89b..4dad23b 100644 (file)
@@ -764,7 +764,6 @@ static struct platform_driver qup_i2c_driver = {
        .remove = qup_i2c_remove,
        .driver = {
                .name = "i2c_qup",
-               .owner = THIS_MODULE,
                .pm = &qup_i2c_qup_pm_ops,
                .of_match_table = qup_i2c_dt_match,
        },
index d826e82..a9494ee 100644 (file)
@@ -620,7 +620,6 @@ MODULE_DEVICE_TABLE(platform, rcar_i2c_id_table);
 static struct platform_driver rcar_i2c_driver = {
        .driver = {
                .name   = "i2c-rcar",
-               .owner  = THIS_MODULE,
                .of_match_table = rcar_i2c_dt_ids,
        },
        .probe          = rcar_i2c_probe,
index af3b3d0..d7e3af6 100644 (file)
@@ -414,7 +414,6 @@ static struct platform_driver riic_i2c_driver = {
        .remove         = riic_i2c_remove,
        .driver         = {
                .name   = "i2c-riic",
-               .owner  = THIS_MODULE,
                .of_match_table = riic_i2c_dt_ids,
        },
 };
index f486d0e..045edd7 100644 (file)
@@ -753,7 +753,6 @@ static struct platform_driver rk3x_i2c_driver = {
        .probe   = rk3x_i2c_probe,
        .remove  = rk3x_i2c_remove,
        .driver  = {
-               .owner = THIS_MODULE,
                .name  = "rk3x-i2c",
                .of_match_table = rk3x_i2c_match,
        },
index e3b0337..fd4fd0c 100644 (file)
@@ -1305,7 +1305,6 @@ static struct platform_driver s3c24xx_i2c_driver = {
        .remove         = s3c24xx_i2c_remove,
        .id_table       = s3c24xx_driver_ids,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "s3c-i2c",
                .pm     = S3C24XX_DEV_PM_OPS,
                .of_match_table = of_match_ptr(s3c24xx_i2c_match),
index d76f3d9..2496838 100644 (file)
@@ -552,7 +552,6 @@ static int sh7760_i2c_remove(struct platform_device *pdev)
 static struct platform_driver sh7760_i2c_drv = {
        .driver = {
                .name   = SH7760_I2C_DEVNAME,
-               .owner  = THIS_MODULE,
        },
        .probe          = sh7760_i2c_probe,
        .remove         = sh7760_i2c_remove,
index 8b5e79c..12b9a69 100644 (file)
@@ -798,7 +798,6 @@ static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
 static struct platform_driver sh_mobile_i2c_driver = {
        .driver         = {
                .name           = "i2c-sh_mobile",
-               .owner          = THIS_MODULE,
                .pm             = &sh_mobile_i2c_dev_pm_ops,
                .of_match_table = sh_mobile_i2c_dt_ids,
        },
index 964e5c6..e766de8 100644 (file)
@@ -158,7 +158,6 @@ static int simtec_i2c_remove(struct platform_device *dev)
 static struct platform_driver simtec_i2c_driver = {
        .driver         = {
                .name           = "simtec-i2c",
-               .owner          = THIS_MODULE,
        },
        .probe          = simtec_i2c_probe,
        .remove         = simtec_i2c_remove,
index b1336d5..1092d4e 100644 (file)
@@ -451,7 +451,6 @@ MODULE_DEVICE_TABLE(of, sirfsoc_i2c_of_match);
 static struct platform_driver i2c_sirfsoc_driver = {
        .driver = {
                .name = "sirfsoc_i2c",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm = &i2c_sirfsoc_pm_ops,
 #endif
index 2e4eccd..88057fa 100644 (file)
@@ -863,7 +863,6 @@ MODULE_DEVICE_TABLE(of, st_i2c_match);
 static struct platform_driver st_i2c_driver = {
        .driver = {
                .name = "st-i2c",
-               .owner = THIS_MODULE,
                .of_match_table = st_i2c_match,
                .pm = ST_I2C_PM,
        },
index 6a44f37..4885da9 100644 (file)
@@ -981,7 +981,6 @@ static const struct of_device_id stu300_dt_match[] = {
 static struct platform_driver stu300_i2c_driver = {
        .driver = {
                .name   = NAME,
-               .owner  = THIS_MODULE,
                .pm     = STU300_I2C_PM,
                .of_match_table = stu300_dt_match,
        },
index 4d75d47..7668e2e 100644 (file)
@@ -332,7 +332,6 @@ static struct platform_driver p2wi_driver = {
        .probe  = p2wi_probe,
        .remove = p2wi_remove,
        .driver = {
-               .owner = THIS_MODULE,
                .name = "i2c-sunxi-p2wi",
                .of_match_table = p2wi_of_match_table,
        },
index efba1eb..28b87e6 100644 (file)
@@ -893,7 +893,6 @@ static struct platform_driver tegra_i2c_driver = {
        .remove  = tegra_i2c_remove,
        .driver  = {
                .name  = "tegra-i2c",
-               .owner = THIS_MODULE,
                .of_match_table = tegra_i2c_of_match,
                .pm    = TEGRA_I2C_PM,
        },
index 6bb3a89..240637f 100644 (file)
@@ -138,7 +138,6 @@ static struct platform_driver i2c_versatile_driver = {
        .remove         = i2c_versatile_remove,
        .driver         = {
                .name   = "versatile-i2c",
-               .owner  = THIS_MODULE,
                .of_match_table = i2c_versatile_match,
        },
 };
index f80a38c..82ea349 100644 (file)
@@ -462,7 +462,6 @@ static struct platform_driver wmt_i2c_driver = {
        .remove         = wmt_i2c_remove,
        .driver         = {
                .name   = "wmt-i2c",
-               .owner  = THIS_MODULE,
                .of_match_table = wmt_i2c_dt_ids,
        },
 };
index ade9223..e60e67a 100644 (file)
@@ -771,7 +771,6 @@ static struct platform_driver xiic_i2c_driver = {
        .probe   = xiic_i2c_probe,
        .remove  = xiic_i2c_remove,
        .driver  = {
-               .owner = THIS_MODULE,
                .name = DRIVER_NAME,
                .of_match_table = of_match_ptr(xiic_of_match),
        },
index 17f7352..8b36bcf 100644 (file)
@@ -263,7 +263,6 @@ static struct platform_driver xlr_i2c_driver = {
        .remove = xlr_i2c_remove,
        .driver = {
                .name   = "xlr-i2cbus",
-               .owner  = THIS_MODULE,
        },
 };
 
index ff3f574..77dacfe 100644 (file)
@@ -548,7 +548,6 @@ static int scx200_remove(struct platform_device *pdev)
 static struct platform_driver scx200_pci_driver = {
        .driver = {
                .name = "cs5535-smb",
-               .owner = THIS_MODULE,
        },
        .probe = scx200_probe,
        .remove = scx200_remove,