Commit 14ac00e0 authored by Wolfram Sang's avatar Wolfram Sang

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: default avatarWolfram Sang <wsa@the-dreams.de>
parent 72c62933
...@@ -972,7 +972,6 @@ MODULE_ALIAS("platform:adi-spi3"); ...@@ -972,7 +972,6 @@ MODULE_ALIAS("platform:adi-spi3");
static struct platform_driver adi_spi_driver = { static struct platform_driver adi_spi_driver = {
.driver = { .driver = {
.name = "adi-spi3", .name = "adi-spi3",
.owner = THIS_MODULE,
.pm = &adi_spi_pm_ops, .pm = &adi_spi_pm_ops,
}, },
.remove = adi_spi_remove, .remove = adi_spi_remove,
......
...@@ -282,7 +282,6 @@ static struct platform_driver altera_spi_driver = { ...@@ -282,7 +282,6 @@ static struct platform_driver altera_spi_driver = {
.remove = altera_spi_remove, .remove = altera_spi_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = NULL, .pm = NULL,
.of_match_table = of_match_ptr(altera_spi_match), .of_match_table = of_match_ptr(altera_spi_match),
}, },
......
...@@ -307,7 +307,6 @@ static struct platform_driver ath79_spi_driver = { ...@@ -307,7 +307,6 @@ static struct platform_driver ath79_spi_driver = {
.shutdown = ath79_spi_shutdown, .shutdown = ath79_spi_shutdown,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(ath79_spi_driver); module_platform_driver(ath79_spi_driver);
......
...@@ -1493,7 +1493,6 @@ MODULE_DEVICE_TABLE(of, atmel_spi_dt_ids); ...@@ -1493,7 +1493,6 @@ MODULE_DEVICE_TABLE(of, atmel_spi_dt_ids);
static struct platform_driver atmel_spi_driver = { static struct platform_driver atmel_spi_driver = {
.driver = { .driver = {
.name = "atmel_spi", .name = "atmel_spi",
.owner = THIS_MODULE,
.pm = ATMEL_SPI_PM_OPS, .pm = ATMEL_SPI_PM_OPS,
.of_match_table = of_match_ptr(atmel_spi_dt_ids), .of_match_table = of_match_ptr(atmel_spi_dt_ids),
}, },
......
...@@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = { ...@@ -965,7 +965,6 @@ static struct platform_driver au1550_spi_drv = {
.remove = au1550_spi_remove, .remove = au1550_spi_remove,
.driver = { .driver = {
.name = "au1550-spi", .name = "au1550-spi",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -395,7 +395,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_spi_match); ...@@ -395,7 +395,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_spi_match);
static struct platform_driver bcm2835_spi_driver = { static struct platform_driver bcm2835_spi_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = bcm2835_spi_match, .of_match_table = bcm2835_spi_match,
}, },
.probe = bcm2835_spi_probe, .probe = bcm2835_spi_probe,
......
...@@ -459,7 +459,6 @@ static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend, ...@@ -459,7 +459,6 @@ static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend,
static struct platform_driver bcm63xx_hsspi_driver = { static struct platform_driver bcm63xx_hsspi_driver = {
.driver = { .driver = {
.name = "bcm63xx-hsspi", .name = "bcm63xx-hsspi",
.owner = THIS_MODULE,
.pm = &bcm63xx_hsspi_pm_ops, .pm = &bcm63xx_hsspi_pm_ops,
}, },
.probe = bcm63xx_hsspi_probe, .probe = bcm63xx_hsspi_probe,
......
...@@ -469,7 +469,6 @@ static const struct dev_pm_ops bcm63xx_spi_pm_ops = { ...@@ -469,7 +469,6 @@ static const struct dev_pm_ops bcm63xx_spi_pm_ops = {
static struct platform_driver bcm63xx_spi_driver = { static struct platform_driver bcm63xx_spi_driver = {
.driver = { .driver = {
.name = "bcm63xx-spi", .name = "bcm63xx-spi",
.owner = THIS_MODULE,
.pm = &bcm63xx_spi_pm_ops, .pm = &bcm63xx_spi_pm_ops,
}, },
.probe = bcm63xx_spi_probe, .probe = bcm63xx_spi_probe,
......
...@@ -921,7 +921,6 @@ static SIMPLE_DEV_PM_OPS(bfin_sport_spi_pm_ops, bfin_sport_spi_suspend, ...@@ -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 = { static struct platform_driver bfin_sport_spi_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = BFIN_SPORT_SPI_PM_OPS, .pm = BFIN_SPORT_SPI_PM_OPS,
}, },
.probe = bfin_sport_spi_probe, .probe = bfin_sport_spi_probe,
......
...@@ -1455,7 +1455,6 @@ MODULE_ALIAS("platform:bfin-spi"); ...@@ -1455,7 +1455,6 @@ MODULE_ALIAS("platform:bfin-spi");
static struct platform_driver bfin_spi_driver = { static struct platform_driver bfin_spi_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = BFIN_SPI_PM_OPS, .pm = BFIN_SPI_PM_OPS,
}, },
.probe = bfin_spi_probe, .probe = bfin_spi_probe,
......
...@@ -203,7 +203,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) ...@@ -203,7 +203,6 @@ static int spi_clps711x_probe(struct platform_device *pdev)
static struct platform_driver clps711x_spi_driver = { static struct platform_driver clps711x_spi_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = spi_clps711x_probe, .probe = spi_clps711x_probe,
}; };
......
...@@ -1119,7 +1119,6 @@ static int davinci_spi_remove(struct platform_device *pdev) ...@@ -1119,7 +1119,6 @@ static int davinci_spi_remove(struct platform_device *pdev)
static struct platform_driver davinci_spi_driver = { static struct platform_driver davinci_spi_driver = {
.driver = { .driver = {
.name = "spi_davinci", .name = "spi_davinci",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(davinci_spi_of_match), .of_match_table = of_match_ptr(davinci_spi_of_match),
}, },
.probe = davinci_spi_probe, .probe = davinci_spi_probe,
......
...@@ -135,7 +135,6 @@ static struct platform_driver dw_spi_mmio_driver = { ...@@ -135,7 +135,6 @@ static struct platform_driver dw_spi_mmio_driver = {
.remove = dw_spi_mmio_remove, .remove = dw_spi_mmio_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = dw_spi_mmio_of_match, .of_match_table = dw_spi_mmio_of_match,
}, },
}; };
......
...@@ -494,7 +494,6 @@ static struct platform_driver efm32_spi_driver = { ...@@ -494,7 +494,6 @@ static struct platform_driver efm32_spi_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = efm32_spi_dt_ids, .of_match_table = efm32_spi_dt_ids,
}, },
}; };
......
...@@ -964,7 +964,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev) ...@@ -964,7 +964,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev)
static struct platform_driver ep93xx_spi_driver = { static struct platform_driver ep93xx_spi_driver = {
.driver = { .driver = {
.name = "ep93xx-spi", .name = "ep93xx-spi",
.owner = THIS_MODULE,
}, },
.probe = ep93xx_spi_probe, .probe = ep93xx_spi_probe,
.remove = ep93xx_spi_remove, .remove = ep93xx_spi_remove,
......
...@@ -441,7 +441,6 @@ static struct platform_driver falcon_sflash_driver = { ...@@ -441,7 +441,6 @@ static struct platform_driver falcon_sflash_driver = {
.probe = falcon_sflash_probe, .probe = falcon_sflash_probe,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = falcon_sflash_match, .of_match_table = falcon_sflash_match,
} }
}; };
......
...@@ -827,7 +827,6 @@ MODULE_DEVICE_TABLE(of, of_fsl_espi_match); ...@@ -827,7 +827,6 @@ MODULE_DEVICE_TABLE(of, of_fsl_espi_match);
static struct platform_driver fsl_espi_driver = { static struct platform_driver fsl_espi_driver = {
.driver = { .driver = {
.name = "fsl_espi", .name = "fsl_espi",
.owner = THIS_MODULE,
.of_match_table = of_fsl_espi_match, .of_match_table = of_fsl_espi_match,
.pm = &espi_pm, .pm = &espi_pm,
}, },
......
...@@ -882,7 +882,6 @@ static int of_fsl_spi_remove(struct platform_device *ofdev) ...@@ -882,7 +882,6 @@ static int of_fsl_spi_remove(struct platform_device *ofdev)
static struct platform_driver of_fsl_spi_driver = { static struct platform_driver of_fsl_spi_driver = {
.driver = { .driver = {
.name = "fsl_spi", .name = "fsl_spi",
.owner = THIS_MODULE,
.of_match_table = of_fsl_spi_match, .of_match_table = of_fsl_spi_match,
}, },
.probe = of_fsl_spi_probe, .probe = of_fsl_spi_probe,
...@@ -929,7 +928,6 @@ static struct platform_driver mpc8xxx_spi_driver = { ...@@ -929,7 +928,6 @@ static struct platform_driver mpc8xxx_spi_driver = {
.remove = plat_mpc8xxx_spi_remove, .remove = plat_mpc8xxx_spi_remove,
.driver = { .driver = {
.name = "mpc8xxx_spi", .name = "mpc8xxx_spi",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -524,7 +524,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME); ...@@ -524,7 +524,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME);
static struct platform_driver spi_gpio_driver = { static struct platform_driver spi_gpio_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(spi_gpio_dt_ids), .of_match_table = of_match_ptr(spi_gpio_dt_ids),
}, },
.probe = spi_gpio_probe, .probe = spi_gpio_probe,
......
...@@ -1231,7 +1231,6 @@ static int spi_imx_remove(struct platform_device *pdev) ...@@ -1231,7 +1231,6 @@ static int spi_imx_remove(struct platform_device *pdev)
static struct platform_driver spi_imx_driver = { static struct platform_driver spi_imx_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = spi_imx_dt_ids, .of_match_table = spi_imx_dt_ids,
}, },
.id_table = spi_imx_devtype, .id_table = spi_imx_devtype,
......
...@@ -600,7 +600,6 @@ static struct platform_driver mpc512x_psc_spi_of_driver = { ...@@ -600,7 +600,6 @@ static struct platform_driver mpc512x_psc_spi_of_driver = {
.remove = mpc512x_psc_spi_of_remove, .remove = mpc512x_psc_spi_of_remove,
.driver = { .driver = {
.name = "mpc512x-psc-spi", .name = "mpc512x-psc-spi",
.owner = THIS_MODULE,
.of_match_table = mpc512x_psc_spi_of_match, .of_match_table = mpc512x_psc_spi_of_match,
}, },
}; };
......
...@@ -508,7 +508,6 @@ static struct platform_driver mpc52xx_psc_spi_of_driver = { ...@@ -508,7 +508,6 @@ static struct platform_driver mpc52xx_psc_spi_of_driver = {
.remove = mpc52xx_psc_spi_of_remove, .remove = mpc52xx_psc_spi_of_remove,
.driver = { .driver = {
.name = "mpc52xx-psc-spi", .name = "mpc52xx-psc-spi",
.owner = THIS_MODULE,
.of_match_table = mpc52xx_psc_spi_of_match, .of_match_table = mpc52xx_psc_spi_of_match,
}, },
}; };
......
...@@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_spi_match); ...@@ -543,7 +543,6 @@ MODULE_DEVICE_TABLE(of, mpc52xx_spi_match);
static struct platform_driver mpc52xx_spi_of_driver = { static struct platform_driver mpc52xx_spi_of_driver = {
.driver = { .driver = {
.name = "mpc52xx-spi", .name = "mpc52xx-spi",
.owner = THIS_MODULE,
.of_match_table = mpc52xx_spi_match, .of_match_table = mpc52xx_spi_match,
}, },
.probe = mpc52xx_spi_probe, .probe = mpc52xx_spi_probe,
......
...@@ -572,7 +572,6 @@ static struct platform_driver mxs_spi_driver = { ...@@ -572,7 +572,6 @@ static struct platform_driver mxs_spi_driver = {
.remove = mxs_spi_remove, .remove = mxs_spi_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = mxs_spi_dt_ids, .of_match_table = mxs_spi_dt_ids,
}, },
}; };
......
...@@ -423,7 +423,6 @@ static struct platform_driver nuc900_spi_driver = { ...@@ -423,7 +423,6 @@ static struct platform_driver nuc900_spi_driver = {
.remove = nuc900_spi_remove, .remove = nuc900_spi_remove,
.driver = { .driver = {
.name = "nuc900-spi", .name = "nuc900-spi",
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(nuc900_spi_driver); module_platform_driver(nuc900_spi_driver);
......
...@@ -351,7 +351,6 @@ static struct platform_driver tiny_spi_driver = { ...@@ -351,7 +351,6 @@ static struct platform_driver tiny_spi_driver = {
.remove = tiny_spi_remove, .remove = tiny_spi_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = NULL, .pm = NULL,
.of_match_table = of_match_ptr(tiny_spi_match), .of_match_table = of_match_ptr(tiny_spi_match),
}, },
......
...@@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, octeon_spi_match); ...@@ -247,7 +247,6 @@ MODULE_DEVICE_TABLE(of, octeon_spi_match);
static struct platform_driver octeon_spi_driver = { static struct platform_driver octeon_spi_driver = {
.driver = { .driver = {
.name = "spi-octeon", .name = "spi-octeon",
.owner = THIS_MODULE,
.of_match_table = octeon_spi_match, .of_match_table = octeon_spi_match,
}, },
.probe = octeon_spi_probe, .probe = octeon_spi_probe,
......
...@@ -453,7 +453,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev) ...@@ -453,7 +453,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
static struct platform_driver omap1_spi100k_driver = { static struct platform_driver omap1_spi100k_driver = {
.driver = { .driver = {
.name = "omap1_spi100k", .name = "omap1_spi100k",
.owner = THIS_MODULE,
}, },
.probe = omap1_spi100k_probe, .probe = omap1_spi100k_probe,
}; };
......
...@@ -527,7 +527,6 @@ MODULE_ALIAS("platform:omap_uwire"); ...@@ -527,7 +527,6 @@ MODULE_ALIAS("platform:omap_uwire");
static struct platform_driver uwire_driver = { static struct platform_driver uwire_driver = {
.driver = { .driver = {
.name = "omap_uwire", .name = "omap_uwire",
.owner = THIS_MODULE,
}, },
.probe = uwire_probe, .probe = uwire_probe,
.remove = uwire_remove, .remove = uwire_remove,
......
...@@ -1521,7 +1521,6 @@ static const struct dev_pm_ops omap2_mcspi_pm_ops = { ...@@ -1521,7 +1521,6 @@ static const struct dev_pm_ops omap2_mcspi_pm_ops = {
static struct platform_driver omap2_mcspi_driver = { static struct platform_driver omap2_mcspi_driver = {
.driver = { .driver = {
.name = "omap2_mcspi", .name = "omap2_mcspi",
.owner = THIS_MODULE,
.pm = &omap2_mcspi_pm_ops, .pm = &omap2_mcspi_pm_ops,
.of_match_table = omap_mcspi_of_match, .of_match_table = omap_mcspi_of_match,
}, },
......
...@@ -551,7 +551,6 @@ static const struct dev_pm_ops orion_spi_pm_ops = { ...@@ -551,7 +551,6 @@ static const struct dev_pm_ops orion_spi_pm_ops = {
static struct platform_driver orion_spi_driver = { static struct platform_driver orion_spi_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &orion_spi_pm_ops, .pm = &orion_spi_pm_ops,
.of_match_table = of_match_ptr(orion_spi_of_match_table), .of_match_table = of_match_ptr(orion_spi_of_match_table),
}, },
......
...@@ -575,7 +575,6 @@ static struct platform_driver spi_ppc4xx_of_driver = { ...@@ -575,7 +575,6 @@ static struct platform_driver spi_ppc4xx_of_driver = {
.remove = spi_ppc4xx_of_remove, .remove = spi_ppc4xx_of_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = spi_ppc4xx_of_match, .of_match_table = spi_ppc4xx_of_match,
}, },
}; };
......
...@@ -1331,7 +1331,6 @@ static const struct dev_pm_ops pxa2xx_spi_pm_ops = { ...@@ -1331,7 +1331,6 @@ static const struct dev_pm_ops pxa2xx_spi_pm_ops = {
static struct platform_driver driver = { static struct platform_driver driver = {
.driver = { .driver = {
.name = "pxa2xx-spi", .name = "pxa2xx-spi",
.owner = THIS_MODULE,
.pm = &pxa2xx_spi_pm_ops, .pm = &pxa2xx_spi_pm_ops,
.acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match), .acpi_match_table = ACPI_PTR(pxa2xx_spi_acpi_match),
}, },
......
...@@ -756,7 +756,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = { ...@@ -756,7 +756,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = {
static struct platform_driver spi_qup_driver = { static struct platform_driver spi_qup_driver = {
.driver = { .driver = {
.name = "spi_qup", .name = "spi_qup",
.owner = THIS_MODULE,
.pm = &spi_qup_dev_pm_ops, .pm = &spi_qup_dev_pm_ops,
.of_match_table = spi_qup_dt_match, .of_match_table = spi_qup_dt_match,
}, },
......
...@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match); ...@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match);
static struct platform_driver rockchip_spi_driver = { static struct platform_driver rockchip_spi_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &rockchip_spi_pm, .pm = &rockchip_spi_pm,
.of_match_table = of_match_ptr(rockchip_spi_dt_match), .of_match_table = of_match_ptr(rockchip_spi_dt_match),
}, },
......
...@@ -1211,7 +1211,6 @@ static struct platform_driver rspi_driver = { ...@@ -1211,7 +1211,6 @@ static struct platform_driver rspi_driver = {
.id_table = spi_driver_ids, .id_table = spi_driver_ids,
.driver = { .driver = {
.name = "renesas_spi", .name = "renesas_spi",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(rspi_of_match), .of_match_table = of_match_ptr(rspi_of_match),
}, },
}; };
......
...@@ -663,7 +663,6 @@ static struct platform_driver s3c24xx_spi_driver = { ...@@ -663,7 +663,6 @@ static struct platform_driver s3c24xx_spi_driver = {
.remove = s3c24xx_spi_remove, .remove = s3c24xx_spi_remove,
.driver = { .driver = {
.name = "s3c2410-spi", .name = "s3c2410-spi",
.owner = THIS_MODULE,
.pm = S3C24XX_SPI_PMOPS, .pm = S3C24XX_SPI_PMOPS,
}, },
}; };
......
...@@ -1381,7 +1381,6 @@ MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); ...@@ -1381,7 +1381,6 @@ MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
static struct platform_driver s3c64xx_spi_driver = { static struct platform_driver s3c64xx_spi_driver = {
.driver = { .driver = {
.name = "s3c64xx-spi", .name = "s3c64xx-spi",
.owner = THIS_MODULE,
.pm = &s3c64xx_spi_pm, .pm = &s3c64xx_spi_pm,
.of_match_table = of_match_ptr(s3c64xx_spi_dt_match), .of_match_table = of_match_ptr(s3c64xx_spi_dt_match),
}, },
......
...@@ -315,7 +315,6 @@ static struct platform_driver hspi_driver = { ...@@ -315,7 +315,6 @@ static struct platform_driver hspi_driver = {
.remove = hspi_remove, .remove = hspi_remove,
.driver = { .driver = {
.name = "sh-hspi", .name = "sh-hspi",
.owner = THIS_MODULE,
.of_match_table = hspi_of_match, .of_match_table = hspi_of_match,
}, },
}; };
......
...@@ -1235,7 +1235,6 @@ static struct platform_driver sh_msiof_spi_drv = { ...@@ -1235,7 +1235,6 @@ static struct platform_driver sh_msiof_spi_drv = {
.id_table = spi_driver_ids, .id_table = spi_driver_ids,
.driver = { .driver = {
.name = "spi_sh_msiof", .name = "spi_sh_msiof",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(sh_msiof_match), .of_match_table = of_match_ptr(sh_msiof_match),
}, },
}; };
......
...@@ -187,7 +187,6 @@ static struct platform_driver sh_sci_spi_drv = { ...@@ -187,7 +187,6 @@ static struct platform_driver sh_sci_spi_drv = {
.remove = sh_sci_spi_remove, .remove = sh_sci_spi_remove,
.driver = { .driver = {
.name = "spi_sh_sci", .name = "spi_sh_sci",
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(sh_sci_spi_drv); module_platform_driver(sh_sci_spi_drv);
......
...@@ -532,7 +532,6 @@ static struct platform_driver spi_sh_driver = { ...@@ -532,7 +532,6 @@ static struct platform_driver spi_sh_driver = {
.remove = spi_sh_remove, .remove = spi_sh_remove,
.driver = { .driver = {
.name = "sh_spi", .name = "sh_spi",
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(spi_sh_driver); module_platform_driver(spi_sh_driver);
......
...@@ -820,7 +820,6 @@ MODULE_DEVICE_TABLE(of, spi_sirfsoc_of_match); ...@@ -820,7 +820,6 @@ MODULE_DEVICE_TABLE(of, spi_sirfsoc_of_match);
static struct platform_driver spi_sirfsoc_driver = { static struct platform_driver spi_sirfsoc_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &spi_sirfsoc_pm_ops, .pm = &spi_sirfsoc_pm_ops,
.of_match_table = spi_sirfsoc_of_match, .of_match_table = spi_sirfsoc_of_match,
}, },
......
...@@ -464,7 +464,6 @@ static struct platform_driver sun4i_spi_driver = { ...@@ -464,7 +464,6 @@ static struct platform_driver sun4i_spi_driver = {
.remove = sun4i_spi_remove, .remove = sun4i_spi_remove,
.driver = { .driver = {
.name = "sun4i-spi", .name = "sun4i-spi",
.owner = THIS_MODULE,
.of_match_table = sun4i_spi_match, .of_match_table = sun4i_spi_match,
.pm = &sun4i_spi_pm_ops, .pm = &sun4i_spi_pm_ops,
}, },
......
...@@ -470,7 +470,6 @@ static struct platform_driver sun6i_spi_driver = { ...@@ -470,7 +470,6 @@ static struct platform_driver sun6i_spi_driver = {
.remove = sun6i_spi_remove, .remove = sun6i_spi_remove,
.driver = { .driver = {
.name = "sun6i-spi", .name = "sun6i-spi",
.owner = THIS_MODULE,
.of_match_table = sun6i_spi_match, .of_match_table = sun6i_spi_match,
.pm = &sun6i_spi_pm_ops, .pm = &sun6i_spi_pm_ops,
}, },
......
...@@ -1223,7 +1223,6 @@ static const struct dev_pm_ops tegra_spi_pm_ops = { ...@@ -1223,7 +1223,6 @@ static const struct dev_pm_ops tegra_spi_pm_ops = {
static struct platform_driver tegra_spi_driver = { static struct platform_driver tegra_spi_driver = {
.driver = { .driver = {
.name = "spi-tegra114", .name = "spi-tegra114",
.owner = THIS_MODULE,
.pm = &tegra_spi_pm_ops, .pm = &tegra_spi_pm_ops,
.of_match_table = tegra_spi_of_match, .of_match_table = tegra_spi_of_match,
}, },
......
...@@ -608,7 +608,6 @@ static const struct dev_pm_ops slink_pm_ops = { ...@@ -608,7 +608,6 @@ static const struct dev_pm_ops slink_pm_ops = {
static struct platform_driver tegra_sflash_driver = { static struct platform_driver tegra_sflash_driver = {
.driver = { .driver = {
.name = "spi-tegra-sflash", .name = "spi-tegra-sflash",
.owner = THIS_MODULE,
.pm = &slink_pm_ops, .pm = &slink_pm_ops,
.of_match_table = tegra_sflash_of_match, .of_match_table = tegra_sflash_of_match,
}, },
......
...@@ -1224,7 +1224,6 @@ static const struct dev_pm_ops slink_pm_ops = { ...@@ -1224,7 +1224,6 @@ static const struct dev_pm_ops slink_pm_ops = {
static struct platform_driver tegra_slink_driver = { static struct platform_driver tegra_slink_driver = {
.driver = { .driver = {
.name = "spi-tegra-slink", .name = "spi-tegra-slink",
.owner = THIS_MODULE,
.pm = &slink_pm_ops, .pm = &slink_pm_ops,
.of_match_table = tegra_slink_of_match, .of_match_table = tegra_slink_of_match,
}, },
......
...@@ -567,7 +567,6 @@ static struct platform_driver ti_qspi_driver = { ...@@ -567,7 +567,6 @@ static struct platform_driver ti_qspi_driver = {
.remove = ti_qspi_remove, .remove = ti_qspi_remove,
.driver = { .driver = {
.name = "ti-qspi", .name = "ti-qspi",
.owner = THIS_MODULE,
.pm = &ti_qspi_pm_ops, .pm = &ti_qspi_pm_ops,
.of_match_table = ti_qspi_match, .of_match_table = ti_qspi_match,
} }
......
...@@ -1561,7 +1561,6 @@ static int pch_spi_pd_resume(struct platform_device *pd_dev) ...@@ -1561,7 +1561,6 @@ static int pch_spi_pd_resume(struct platform_device *pd_dev)
static struct platform_driver pch_spi_pd_driver = { static struct platform_driver pch_spi_pd_driver = {
.driver = { .driver = {
.name = "pch-spi", .name = "pch-spi",
.owner = THIS_MODULE,
}, },
.probe = pch_spi_pd_probe, .probe = pch_spi_pd_probe,
.remove = pch_spi_pd_remove, .remove = pch_spi_pd_remove,
......
...@@ -426,7 +426,6 @@ static struct platform_driver txx9spi_driver = { ...@@ -426,7 +426,6 @@ static struct platform_driver txx9spi_driver = {
.remove = txx9spi_remove, .remove = txx9spi_remove,
.driver = { .driver = {
.name = "spi_txx9", .name = "spi_txx9",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -160,7 +160,6 @@ static struct platform_driver xtfpga_spi_driver = { ...@@ -160,7 +160,6 @@ static struct platform_driver xtfpga_spi_driver = {
.remove = xtfpga_spi_remove, .remove = xtfpga_spi_remove,
.driver = { .driver = {
.name = XTFPGA_SPI_NAME, .name = XTFPGA_SPI_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(xtfpga_spi_of_match), .of_match_table = of_match_ptr(xtfpga_spi_of_match),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment