OSDN Git Service

spi: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:36 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:36 +0000 (16:21 +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>
52 files changed:
drivers/spi/spi-adi-v3.c
drivers/spi/spi-altera.c
drivers/spi/spi-ath79.c
drivers/spi/spi-atmel.c
drivers/spi/spi-au1550.c
drivers/spi/spi-bcm2835.c
drivers/spi/spi-bcm63xx-hsspi.c
drivers/spi/spi-bcm63xx.c
drivers/spi/spi-bfin-sport.c
drivers/spi/spi-bfin5xx.c
drivers/spi/spi-clps711x.c
drivers/spi/spi-davinci.c
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-efm32.c
drivers/spi/spi-ep93xx.c
drivers/spi/spi-falcon.c
drivers/spi/spi-fsl-espi.c
drivers/spi/spi-fsl-spi.c
drivers/spi/spi-gpio.c
drivers/spi/spi-imx.c
drivers/spi/spi-mpc512x-psc.c
drivers/spi/spi-mpc52xx-psc.c
drivers/spi/spi-mpc52xx.c
drivers/spi/spi-mxs.c
drivers/spi/spi-nuc900.c
drivers/spi/spi-oc-tiny.c
drivers/spi/spi-octeon.c
drivers/spi/spi-omap-100k.c
drivers/spi/spi-omap-uwire.c
drivers/spi/spi-omap2-mcspi.c
drivers/spi/spi-orion.c
drivers/spi/spi-ppc4xx.c
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-qup.c
drivers/spi/spi-rockchip.c
drivers/spi/spi-rspi.c
drivers/spi/spi-s3c24xx.c
drivers/spi/spi-s3c64xx.c
drivers/spi/spi-sh-hspi.c
drivers/spi/spi-sh-msiof.c
drivers/spi/spi-sh-sci.c
drivers/spi/spi-sh.c
drivers/spi/spi-sirf.c
drivers/spi/spi-sun4i.c
drivers/spi/spi-sun6i.c
drivers/spi/spi-tegra114.c
drivers/spi/spi-tegra20-sflash.c
drivers/spi/spi-tegra20-slink.c
drivers/spi/spi-ti-qspi.c
drivers/spi/spi-topcliff-pch.c
drivers/spi/spi-txx9.c
drivers/spi/spi-xtensa-xtfpga.c

index 19ea8fb..a16b25d 100644 (file)
@@ -972,7 +972,6 @@ MODULE_ALIAS("platform:adi-spi3");
 static struct platform_driver adi_spi_driver = {
        .driver = {
                .name   = "adi-spi3",
-               .owner  = THIS_MODULE,
                .pm     = &adi_spi_pm_ops,
        },
        .remove         = adi_spi_remove,
index 5b5709a..b95010e 100644 (file)
@@ -282,7 +282,6 @@ static struct platform_driver altera_spi_driver = {
        .remove = altera_spi_remove,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = NULL,
                .of_match_table = of_match_ptr(altera_spi_match),
        },
index 058db0f..b02eb4a 100644 (file)
@@ -307,7 +307,6 @@ static struct platform_driver ath79_spi_driver = {
        .shutdown       = ath79_spi_shutdown,
        .driver         = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
        },
 };
 module_platform_driver(ath79_spi_driver);
index 113c83f..5b8a84e 100644 (file)
@@ -1493,7 +1493,6 @@ MODULE_DEVICE_TABLE(of, atmel_spi_dt_ids);
 static struct platform_driver atmel_spi_driver = {
        .driver         = {
                .name   = "atmel_spi",
-               .owner  = THIS_MODULE,
                .pm     = ATMEL_SPI_PM_OPS,
                .of_match_table = of_match_ptr(atmel_spi_dt_ids),
        },
index f40b34c..326f479 100644 (file)
@@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = {
        .remove = au1550_spi_remove,
        .driver = {
                .name = "au1550-spi",
-               .owner = THIS_MODULE,
        },
 };
 
index 6916745..98aab45 100644 (file)
@@ -395,7 +395,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_spi_match);
 static struct platform_driver bcm2835_spi_driver = {
        .driver         = {
                .name           = DRV_NAME,
-               .owner          = THIS_MODULE,
                .of_match_table = bcm2835_spi_match,
        },
        .probe          = bcm2835_spi_probe,
index 86f5a98..f5ca6dc 100644 (file)
@@ -459,7 +459,6 @@ static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend,
 static struct platform_driver bcm63xx_hsspi_driver = {
        .driver = {
                .name   = "bcm63xx-hsspi",
-               .owner  = THIS_MODULE,
                .pm     = &bcm63xx_hsspi_pm_ops,
        },
        .probe          = bcm63xx_hsspi_probe,
index 8510400..c205309 100644 (file)
@@ -469,7 +469,6 @@ static const struct dev_pm_ops bcm63xx_spi_pm_ops = {
 static struct platform_driver bcm63xx_spi_driver = {
        .driver = {
                .name   = "bcm63xx-spi",
-               .owner  = THIS_MODULE,
                .pm     = &bcm63xx_spi_pm_ops,
        },
        .probe          = bcm63xx_spi_probe,
index f515c5e..a786931 100644 (file)
@@ -921,7 +921,6 @@ static SIMPLE_DEV_PM_OPS(bfin_sport_spi_pm_ops, bfin_sport_spi_suspend,
 static struct platform_driver bfin_sport_spi_driver = {
        .driver = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
                .pm     = BFIN_SPORT_SPI_PM_OPS,
        },
        .probe   = bfin_sport_spi_probe,
index ebf720b..3707993 100644 (file)
@@ -1455,7 +1455,6 @@ MODULE_ALIAS("platform:bfin-spi");
 static struct platform_driver bfin_spi_driver = {
        .driver = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
                .pm     = BFIN_SPI_PM_OPS,
        },
        .probe          = bfin_spi_probe,
index 181cf22..8c30de0 100644 (file)
@@ -203,7 +203,6 @@ err_out:
 static struct platform_driver clps711x_spi_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
        },
        .probe  = spi_clps711x_probe,
 };
index 63700ab..b3707ba 100644 (file)
@@ -1119,7 +1119,6 @@ static int davinci_spi_remove(struct platform_device *pdev)
 static struct platform_driver davinci_spi_driver = {
        .driver = {
                .name = "spi_davinci",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(davinci_spi_of_match),
        },
        .probe = davinci_spi_probe,
index 21ce0e3..eb03e12 100644 (file)
@@ -135,7 +135,6 @@ static struct platform_driver dw_spi_mmio_driver = {
        .remove         = dw_spi_mmio_remove,
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = dw_spi_mmio_of_match,
        },
 };
index 6caeb1c..065fe87 100644 (file)
@@ -494,7 +494,6 @@ static struct platform_driver efm32_spi_driver = {
 
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = efm32_spi_dt_ids,
        },
 };
index bf97287..bb00be8 100644 (file)
@@ -964,7 +964,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev)
 static struct platform_driver ep93xx_spi_driver = {
        .driver         = {
                .name   = "ep93xx-spi",
-               .owner  = THIS_MODULE,
        },
        .probe          = ep93xx_spi_probe,
        .remove         = ep93xx_spi_remove,
index f73b300..912b903 100644 (file)
@@ -441,7 +441,6 @@ static struct platform_driver falcon_sflash_driver = {
        .probe  = falcon_sflash_probe,
        .driver = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = falcon_sflash_match,
        }
 };
index a7f94b6..cff2ebd 100644 (file)
@@ -827,7 +827,6 @@ MODULE_DEVICE_TABLE(of, of_fsl_espi_match);
 static struct platform_driver fsl_espi_driver = {
        .driver = {
                .name = "fsl_espi",
-               .owner = THIS_MODULE,
                .of_match_table = of_fsl_espi_match,
                .pm = &espi_pm,
        },
index ed79288..048f457 100644 (file)
@@ -882,7 +882,6 @@ static int of_fsl_spi_remove(struct platform_device *ofdev)
 static struct platform_driver of_fsl_spi_driver = {
        .driver = {
                .name = "fsl_spi",
-               .owner = THIS_MODULE,
                .of_match_table = of_fsl_spi_match,
        },
        .probe          = of_fsl_spi_probe,
@@ -929,7 +928,6 @@ static struct platform_driver mpc8xxx_spi_driver = {
        .remove = plat_mpc8xxx_spi_remove,
        .driver = {
                .name = "mpc8xxx_spi",
-               .owner = THIS_MODULE,
        },
 };
 
index 9f59553..4a00b7c 100644 (file)
@@ -524,7 +524,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME);
 static struct platform_driver spi_gpio_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(spi_gpio_dt_ids),
        },
        .probe          = spi_gpio_probe,
index 3637847..961b97d 100644 (file)
@@ -1231,7 +1231,6 @@ static int spi_imx_remove(struct platform_device *pdev)
 static struct platform_driver spi_imx_driver = {
        .driver = {
                   .name = DRIVER_NAME,
-                  .owner = THIS_MODULE,
                   .of_match_table = spi_imx_dt_ids,
                   },
        .id_table = spi_imx_devtype,
index 577d23a..ecae0d4 100644 (file)
@@ -600,7 +600,6 @@ static struct platform_driver mpc512x_psc_spi_of_driver = {
        .remove = mpc512x_psc_spi_of_remove,
        .driver = {
                .name = "mpc512x-psc-spi",
-               .owner = THIS_MODULE,
                .of_match_table = mpc512x_psc_spi_of_match,
        },
 };
index de532aa..72d11eb 100644 (file)
@@ -508,7 +508,6 @@ static struct platform_driver mpc52xx_psc_spi_of_driver = {
        .remove = mpc52xx_psc_spi_of_remove,
        .driver = {
                .name = "mpc52xx-psc-spi",
-               .owner = THIS_MODULE,
                .of_match_table = mpc52xx_psc_spi_of_match,
        },
 };
index b07db4b..c360021 100644 (file)
@@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_spi_match);
 static struct platform_driver mpc52xx_spi_of_driver = {
        .driver = {
                .name = "mpc52xx-spi",
-               .owner = THIS_MODULE,
                .of_match_table = mpc52xx_spi_match,
        },
        .probe = mpc52xx_spi_probe,
index 5146087..11de319 100644 (file)
@@ -572,7 +572,6 @@ static struct platform_driver mxs_spi_driver = {
        .remove = mxs_spi_remove,
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = mxs_spi_dt_ids,
        },
 };
index 73e91d5..f51a058 100644 (file)
@@ -423,7 +423,6 @@ static struct platform_driver nuc900_spi_driver = {
        .remove         = nuc900_spi_remove,
        .driver         = {
                .name   = "nuc900-spi",
-               .owner  = THIS_MODULE,
        },
 };
 module_platform_driver(nuc900_spi_driver);
index 8998d11..76656a7 100644 (file)
@@ -351,7 +351,6 @@ static struct platform_driver tiny_spi_driver = {
        .remove = tiny_spi_remove,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = NULL,
                .of_match_table = of_match_ptr(tiny_spi_match),
        },
index c5e2f71..b283d53 100644 (file)
@@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, octeon_spi_match);
 static struct platform_driver octeon_spi_driver = {
        .driver = {
                .name           = "spi-octeon",
-               .owner          = THIS_MODULE,
                .of_match_table = octeon_spi_match,
        },
        .probe          = octeon_spi_probe,
index fb52276..79399ae 100644 (file)
@@ -453,7 +453,6 @@ err:
 static struct platform_driver omap1_spi100k_driver = {
        .driver = {
                .name           = "omap1_spi100k",
-               .owner          = THIS_MODULE,
        },
        .probe          = omap1_spi100k_probe,
 };
index 8bca90a..daf1ada 100644 (file)
@@ -527,7 +527,6 @@ MODULE_ALIAS("platform:omap_uwire");
 static struct platform_driver uwire_driver = {
        .driver = {
                .name           = "omap_uwire",
-               .owner          = THIS_MODULE,
        },
        .probe = uwire_probe,
        .remove = uwire_remove,
index 352eed7..3bc3cba 100644 (file)
@@ -1521,7 +1521,6 @@ static const struct dev_pm_ops omap2_mcspi_pm_ops = {
 static struct platform_driver omap2_mcspi_driver = {
        .driver = {
                .name =         "omap2_mcspi",
-               .owner =        THIS_MODULE,
                .pm =           &omap2_mcspi_pm_ops,
                .of_match_table = omap_mcspi_of_match,
        },
index 835cdda..f6d2188 100644 (file)
@@ -551,7 +551,6 @@ static const struct dev_pm_ops orion_spi_pm_ops = {
 static struct platform_driver orion_spi_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &orion_spi_pm_ops,
                .of_match_table = of_match_ptr(orion_spi_of_match_table),
        },
index 80b8408..54fb984 100644 (file)
@@ -575,7 +575,6 @@ static struct platform_driver spi_ppc4xx_of_driver = {
        .remove = spi_ppc4xx_of_remove,
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = spi_ppc4xx_of_match,
        },
 };
index d8a105f..00850f8 100644 (file)
@@ -1331,7 +1331,6 @@ static const struct dev_pm_ops pxa2xx_spi_pm_ops = {
 static struct platform_driver driver = {
        .driver = {
                .name   = "pxa2xx-spi",
-               .owner  = THIS_MODULE,
                .pm     = &pxa2xx_spi_pm_ops,
                .acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match),
        },
index 9f83d29..390ed71 100644 (file)
@@ -756,7 +756,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = {
 static struct platform_driver spi_qup_driver = {
        .driver = {
                .name           = "spi_qup",
-               .owner          = THIS_MODULE,
                .pm             = &spi_qup_dev_pm_ops,
                .of_match_table = spi_qup_dt_match,
        },
index f96ea8a..7d90c99 100644 (file)
@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match);
 static struct platform_driver rockchip_spi_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &rockchip_spi_pm,
                .of_match_table = of_match_ptr(rockchip_spi_dt_match),
        },
index 54bb0fa..2071f78 100644 (file)
@@ -1211,7 +1211,6 @@ static struct platform_driver rspi_driver = {
        .id_table =     spi_driver_ids,
        .driver         = {
                .name = "renesas_spi",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(rspi_of_match),
        },
 };
index e713737..f747ca2 100644 (file)
@@ -663,7 +663,6 @@ static struct platform_driver s3c24xx_spi_driver = {
        .remove         = s3c24xx_spi_remove,
        .driver         = {
                .name   = "s3c2410-spi",
-               .owner  = THIS_MODULE,
                .pm     = S3C24XX_SPI_PMOPS,
        },
 };
index 480133e..4392b44 100644 (file)
@@ -1381,7 +1381,6 @@ MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
 static struct platform_driver s3c64xx_spi_driver = {
        .driver = {
                .name   = "s3c64xx-spi",
-               .owner = THIS_MODULE,
                .pm = &s3c64xx_spi_pm,
                .of_match_table = of_match_ptr(s3c64xx_spi_dt_match),
        },
index 94b5fae..fc29233 100644 (file)
@@ -315,7 +315,6 @@ static struct platform_driver hspi_driver = {
        .remove = hspi_remove,
        .driver = {
                .name = "sh-hspi",
-               .owner = THIS_MODULE,
                .of_match_table = hspi_of_match,
        },
 };
index 3f36540..239be7c 100644 (file)
@@ -1235,7 +1235,6 @@ static struct platform_driver sh_msiof_spi_drv = {
        .id_table       = spi_driver_ids,
        .driver         = {
                .name           = "spi_sh_msiof",
-               .owner          = THIS_MODULE,
                .of_match_table = of_match_ptr(sh_msiof_match),
        },
 };
index b83dd73..a9beeee 100644 (file)
@@ -187,7 +187,6 @@ static struct platform_driver sh_sci_spi_drv = {
        .remove         = sh_sci_spi_remove,
        .driver         = {
                .name   = "spi_sh_sci",
-               .owner  = THIS_MODULE,
        },
 };
 module_platform_driver(sh_sci_spi_drv);
index 8e171a7..1cfc906 100644 (file)
@@ -532,7 +532,6 @@ static struct platform_driver spi_sh_driver = {
        .remove = spi_sh_remove,
        .driver = {
                .name = "sh_spi",
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(spi_sh_driver);
index 39e2c0a..515184c 100644 (file)
@@ -820,7 +820,6 @@ MODULE_DEVICE_TABLE(of, spi_sirfsoc_of_match);
 static struct platform_driver spi_sirfsoc_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm     = &spi_sirfsoc_pm_ops,
                .of_match_table = spi_sirfsoc_of_match,
        },
index 85204c9..fbb0a4d 100644 (file)
@@ -464,7 +464,6 @@ static struct platform_driver sun4i_spi_driver = {
        .remove = sun4i_spi_remove,
        .driver = {
                .name           = "sun4i-spi",
-               .owner          = THIS_MODULE,
                .of_match_table = sun4i_spi_match,
                .pm             = &sun4i_spi_pm_ops,
        },
index bd24093..ac48f59 100644 (file)
@@ -470,7 +470,6 @@ static struct platform_driver sun6i_spi_driver = {
        .remove = sun6i_spi_remove,
        .driver = {
                .name           = "sun6i-spi",
-               .owner          = THIS_MODULE,
                .of_match_table = sun6i_spi_match,
                .pm             = &sun6i_spi_pm_ops,
        },
index 795bcbc..73779ce 100644 (file)
@@ -1223,7 +1223,6 @@ static const struct dev_pm_ops tegra_spi_pm_ops = {
 static struct platform_driver tegra_spi_driver = {
        .driver = {
                .name           = "spi-tegra114",
-               .owner          = THIS_MODULE,
                .pm             = &tegra_spi_pm_ops,
                .of_match_table = tegra_spi_of_match,
        },
index cd66fe7..b6558bb 100644 (file)
@@ -608,7 +608,6 @@ static const struct dev_pm_ops slink_pm_ops = {
 static struct platform_driver tegra_sflash_driver = {
        .driver = {
                .name           = "spi-tegra-sflash",
-               .owner          = THIS_MODULE,
                .pm             = &slink_pm_ops,
                .of_match_table = tegra_sflash_of_match,
        },
index 0b9e32e..85c91f5 100644 (file)
@@ -1224,7 +1224,6 @@ static const struct dev_pm_ops slink_pm_ops = {
 static struct platform_driver tegra_slink_driver = {
        .driver = {
                .name           = "spi-tegra-slink",
-               .owner          = THIS_MODULE,
                .pm             = &slink_pm_ops,
                .of_match_table = tegra_slink_of_match,
        },
index 6c211d1..6146c4c 100644 (file)
@@ -567,7 +567,6 @@ static struct platform_driver ti_qspi_driver = {
        .remove = ti_qspi_remove,
        .driver = {
                .name   = "ti-qspi",
-               .owner  = THIS_MODULE,
                .pm =   &ti_qspi_pm_ops,
                .of_match_table = ti_qspi_match,
        }
index 0a87ec3..be692ad 100644 (file)
@@ -1561,7 +1561,6 @@ static int pch_spi_pd_resume(struct platform_device *pd_dev)
 static struct platform_driver pch_spi_pd_driver = {
        .driver = {
                .name = "pch-spi",
-               .owner = THIS_MODULE,
        },
        .probe = pch_spi_pd_probe,
        .remove = pch_spi_pd_remove,
index 2501a83..0da7c67 100644 (file)
@@ -426,7 +426,6 @@ static struct platform_driver txx9spi_driver = {
        .remove = txx9spi_remove,
        .driver = {
                .name = "spi_txx9",
-               .owner = THIS_MODULE,
        },
 };
 
index 0dc5df5..2e32ea2 100644 (file)
@@ -160,7 +160,6 @@ static struct platform_driver xtfpga_spi_driver = {
        .remove = xtfpga_spi_remove,
        .driver = {
                .name = XTFPGA_SPI_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(xtfpga_spi_of_match),
        },
 };