spi: drop owner assignment from platform_drivers
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>
This commit is contained in:
parent
72c6293340
commit
14ac00e033
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = {
|
|||
.remove = au1550_spi_remove,
|
||||
.driver = {
|
||||
.name = "au1550-spi",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -203,7 +203,6 @@ err_out:
|
|||
static struct platform_driver clps711x_spi_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = spi_clps711x_probe,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -453,7 +453,6 @@ err:
|
|||
static struct platform_driver omap1_spi100k_driver = {
|
||||
.driver = {
|
||||
.name = "omap1_spi100k",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = omap1_spi100k_probe,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -426,7 +426,6 @@ static struct platform_driver txx9spi_driver = {
|
|||
.remove = txx9spi_remove,
|
||||
.driver = {
|
||||
.name = "spi_txx9",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue