Commit 2137f5d3 authored by Peter Griffin's avatar Peter Griffin Committed by Ulf Hansson

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: default avatarPeter Griffin <peter.griffin@linaro.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent dea67c4e
...@@ -1161,7 +1161,6 @@ static struct platform_driver jz4740_mmc_driver = { ...@@ -1161,7 +1161,6 @@ static struct platform_driver jz4740_mmc_driver = {
.remove = jz4740_mmc_remove, .remove = jz4740_mmc_remove,
.driver = { .driver = {
.name = "jz4740-mmc", .name = "jz4740-mmc",
.owner = THIS_MODULE,
.pm = JZ4740_MMC_PM_OPS, .pm = JZ4740_MMC_PM_OPS,
}, },
}; };
......
...@@ -717,7 +717,6 @@ static struct platform_driver moxart_mmc_driver = { ...@@ -717,7 +717,6 @@ static struct platform_driver moxart_mmc_driver = {
.remove = moxart_remove, .remove = moxart_remove,
.driver = { .driver = {
.name = "mmc-moxart", .name = "mmc-moxart",
.owner = THIS_MODULE,
.of_match_table = moxart_mmc_match, .of_match_table = moxart_mmc_match,
}, },
}; };
......
...@@ -1238,7 +1238,6 @@ static struct platform_driver mxcmci_driver = { ...@@ -1238,7 +1238,6 @@ static struct platform_driver mxcmci_driver = {
.id_table = mxcmci_devtype, .id_table = mxcmci_devtype,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &mxcmci_pm_ops, .pm = &mxcmci_pm_ops,
.of_match_table = mxcmci_of_match, .of_match_table = mxcmci_of_match,
} }
......
...@@ -735,7 +735,6 @@ static struct platform_driver mxs_mmc_driver = { ...@@ -735,7 +735,6 @@ static struct platform_driver mxs_mmc_driver = {
.id_table = mxs_ssp_ids, .id_table = mxs_ssp_ids,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &mxs_mmc_pm_ops, .pm = &mxs_mmc_pm_ops,
#endif #endif
......
...@@ -1494,7 +1494,6 @@ static struct platform_driver mmc_omap_driver = { ...@@ -1494,7 +1494,6 @@ static struct platform_driver mmc_omap_driver = {
.remove = mmc_omap_remove, .remove = mmc_omap_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(mmc_omap_match), .of_match_table = of_match_ptr(mmc_omap_match),
}, },
}; };
......
...@@ -2489,7 +2489,6 @@ static struct platform_driver omap_hsmmc_driver = { ...@@ -2489,7 +2489,6 @@ static struct platform_driver omap_hsmmc_driver = {
.remove = omap_hsmmc_remove, .remove = omap_hsmmc_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &omap_hsmmc_dev_pm_ops, .pm = &omap_hsmmc_dev_pm_ops,
.of_match_table = of_match_ptr(omap_mmc_of_match), .of_match_table = of_match_ptr(omap_mmc_of_match),
}, },
......
...@@ -885,7 +885,6 @@ static struct platform_driver pxamci_driver = { ...@@ -885,7 +885,6 @@ static struct platform_driver pxamci_driver = {
.remove = pxamci_remove, .remove = pxamci_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pxa_mmc_dt_ids), .of_match_table = of_match_ptr(pxa_mmc_dt_ids),
}, },
}; };
......
...@@ -1423,7 +1423,6 @@ static struct platform_driver rtsx_pci_sdmmc_driver = { ...@@ -1423,7 +1423,6 @@ static struct platform_driver rtsx_pci_sdmmc_driver = {
.remove = rtsx_pci_sdmmc_drv_remove, .remove = rtsx_pci_sdmmc_drv_remove,
.id_table = rtsx_pci_sdmmc_ids, .id_table = rtsx_pci_sdmmc_ids,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRV_NAME_RTSX_PCI_SDMMC, .name = DRV_NAME_RTSX_PCI_SDMMC,
}, },
}; };
......
...@@ -1452,7 +1452,6 @@ static struct platform_driver rtsx_usb_sdmmc_driver = { ...@@ -1452,7 +1452,6 @@ static struct platform_driver rtsx_usb_sdmmc_driver = {
.remove = rtsx_usb_sdmmc_drv_remove, .remove = rtsx_usb_sdmmc_drv_remove,
.id_table = rtsx_usb_sdmmc_ids, .id_table = rtsx_usb_sdmmc_ids,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "rtsx_usb_sdmmc", .name = "rtsx_usb_sdmmc",
}, },
}; };
......
...@@ -1874,7 +1874,6 @@ MODULE_DEVICE_TABLE(platform, s3cmci_driver_ids); ...@@ -1874,7 +1874,6 @@ MODULE_DEVICE_TABLE(platform, s3cmci_driver_ids);
static struct platform_driver s3cmci_driver = { static struct platform_driver s3cmci_driver = {
.driver = { .driver = {
.name = "s3c-sdi", .name = "s3c-sdi",
.owner = THIS_MODULE,
}, },
.id_table = s3cmci_driver_ids, .id_table = s3cmci_driver_ids,
.probe = s3cmci_probe, .probe = s3cmci_probe,
......
...@@ -359,7 +359,6 @@ static int sdhci_bcm_kona_remove(struct platform_device *pdev) ...@@ -359,7 +359,6 @@ static int sdhci_bcm_kona_remove(struct platform_device *pdev)
static struct platform_driver sdhci_bcm_kona_driver = { static struct platform_driver sdhci_bcm_kona_driver = {
.driver = { .driver = {
.name = "sdhci-kona", .name = "sdhci-kona",
.owner = THIS_MODULE,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
.of_match_table = sdhci_bcm_kona_of_match, .of_match_table = sdhci_bcm_kona_of_match,
}, },
......
...@@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_sdhci_of_match); ...@@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_sdhci_of_match);
static struct platform_driver bcm2835_sdhci_driver = { static struct platform_driver bcm2835_sdhci_driver = {
.driver = { .driver = {
.name = "sdhci-bcm2835", .name = "sdhci-bcm2835",
.owner = THIS_MODULE,
.of_match_table = bcm2835_sdhci_of_match, .of_match_table = bcm2835_sdhci_of_match,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
}, },
......
...@@ -106,7 +106,6 @@ static int sdhci_cns3xxx_remove(struct platform_device *pdev) ...@@ -106,7 +106,6 @@ static int sdhci_cns3xxx_remove(struct platform_device *pdev)
static struct platform_driver sdhci_cns3xxx_driver = { static struct platform_driver sdhci_cns3xxx_driver = {
.driver = { .driver = {
.name = "sdhci-cns3xxx", .name = "sdhci-cns3xxx",
.owner = THIS_MODULE,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
}, },
.probe = sdhci_cns3xxx_probe, .probe = sdhci_cns3xxx_probe,
......
...@@ -146,7 +146,6 @@ MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table); ...@@ -146,7 +146,6 @@ MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table);
static struct platform_driver sdhci_dove_driver = { static struct platform_driver sdhci_dove_driver = {
.driver = { .driver = {
.name = "sdhci-dove", .name = "sdhci-dove",
.owner = THIS_MODULE,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
.of_match_table = sdhci_dove_of_match_table, .of_match_table = sdhci_dove_of_match_table,
}, },
......
...@@ -1207,7 +1207,6 @@ static const struct dev_pm_ops sdhci_esdhc_pmops = { ...@@ -1207,7 +1207,6 @@ static const struct dev_pm_ops sdhci_esdhc_pmops = {
static struct platform_driver sdhci_esdhc_imx_driver = { static struct platform_driver sdhci_esdhc_imx_driver = {
.driver = { .driver = {
.name = "sdhci-esdhc-imx", .name = "sdhci-esdhc-imx",
.owner = THIS_MODULE,
.of_match_table = imx_esdhc_dt_ids, .of_match_table = imx_esdhc_dt_ids,
.pm = &sdhci_esdhc_pmops, .pm = &sdhci_esdhc_pmops,
}, },
......
...@@ -610,7 +610,6 @@ static struct platform_driver sdhci_msm_driver = { ...@@ -610,7 +610,6 @@ static struct platform_driver sdhci_msm_driver = {
.remove = sdhci_msm_remove, .remove = sdhci_msm_remove,
.driver = { .driver = {
.name = "sdhci_msm", .name = "sdhci_msm",
.owner = THIS_MODULE,
.of_match_table = sdhci_msm_dt_match, .of_match_table = sdhci_msm_dt_match,
}, },
}; };
......
...@@ -213,7 +213,6 @@ MODULE_DEVICE_TABLE(of, sdhci_arasan_of_match); ...@@ -213,7 +213,6 @@ MODULE_DEVICE_TABLE(of, sdhci_arasan_of_match);
static struct platform_driver sdhci_arasan_driver = { static struct platform_driver sdhci_arasan_driver = {
.driver = { .driver = {
.name = "sdhci-arasan", .name = "sdhci-arasan",
.owner = THIS_MODULE,
.of_match_table = sdhci_arasan_of_match, .of_match_table = sdhci_arasan_of_match,
.pm = &sdhci_arasan_dev_pm_ops, .pm = &sdhci_arasan_dev_pm_ops,
}, },
......
...@@ -388,7 +388,6 @@ MODULE_DEVICE_TABLE(of, sdhci_esdhc_of_match); ...@@ -388,7 +388,6 @@ MODULE_DEVICE_TABLE(of, sdhci_esdhc_of_match);
static struct platform_driver sdhci_esdhc_driver = { static struct platform_driver sdhci_esdhc_driver = {
.driver = { .driver = {
.name = "sdhci-esdhc", .name = "sdhci-esdhc",
.owner = THIS_MODULE,
.of_match_table = sdhci_esdhc_of_match, .of_match_table = sdhci_esdhc_of_match,
.pm = ESDHC_PMOPS, .pm = ESDHC_PMOPS,
}, },
......
...@@ -89,7 +89,6 @@ MODULE_DEVICE_TABLE(of, sdhci_hlwd_of_match); ...@@ -89,7 +89,6 @@ MODULE_DEVICE_TABLE(of, sdhci_hlwd_of_match);
static struct platform_driver sdhci_hlwd_driver = { static struct platform_driver sdhci_hlwd_driver = {
.driver = { .driver = {
.name = "sdhci-hlwd", .name = "sdhci-hlwd",
.owner = THIS_MODULE,
.of_match_table = sdhci_hlwd_of_match, .of_match_table = sdhci_hlwd_of_match,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
}, },
......
...@@ -261,7 +261,6 @@ static int sdhci_pxav2_remove(struct platform_device *pdev) ...@@ -261,7 +261,6 @@ static int sdhci_pxav2_remove(struct platform_device *pdev)
static struct platform_driver sdhci_pxav2_driver = { static struct platform_driver sdhci_pxav2_driver = {
.driver = { .driver = {
.name = "sdhci-pxav2", .name = "sdhci-pxav2",
.owner = THIS_MODULE,
#ifdef CONFIG_OF #ifdef CONFIG_OF
.of_match_table = sdhci_pxav2_of_match, .of_match_table = sdhci_pxav2_of_match,
#endif #endif
......
...@@ -492,7 +492,6 @@ static struct platform_driver sdhci_pxav3_driver = { ...@@ -492,7 +492,6 @@ static struct platform_driver sdhci_pxav3_driver = {
#ifdef CONFIG_OF #ifdef CONFIG_OF
.of_match_table = sdhci_pxav3_of_match, .of_match_table = sdhci_pxav3_of_match,
#endif #endif
.owner = THIS_MODULE,
.pm = SDHCI_PXAV3_PMOPS, .pm = SDHCI_PXAV3_PMOPS,
}, },
.probe = sdhci_pxav3_probe, .probe = sdhci_pxav3_probe,
......
...@@ -747,7 +747,6 @@ static struct platform_driver sdhci_s3c_driver = { ...@@ -747,7 +747,6 @@ static struct platform_driver sdhci_s3c_driver = {
.remove = sdhci_s3c_remove, .remove = sdhci_s3c_remove,
.id_table = sdhci_s3c_driver_ids, .id_table = sdhci_s3c_driver_ids,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "s3c-sdhci", .name = "s3c-sdhci",
.of_match_table = of_match_ptr(sdhci_s3c_dt_match), .of_match_table = of_match_ptr(sdhci_s3c_dt_match),
.pm = SDHCI_S3C_PMOPS, .pm = SDHCI_S3C_PMOPS,
......
...@@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, sdhci_sirf_of_match); ...@@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, sdhci_sirf_of_match);
static struct platform_driver sdhci_sirf_driver = { static struct platform_driver sdhci_sirf_driver = {
.driver = { .driver = {
.name = "sdhci-sirf", .name = "sdhci-sirf",
.owner = THIS_MODULE,
.of_match_table = sdhci_sirf_of_match, .of_match_table = sdhci_sirf_of_match,
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
.pm = &sdhci_sirf_pm_ops, .pm = &sdhci_sirf_pm_ops,
......
...@@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, sdhci_spear_id_table); ...@@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, sdhci_spear_id_table);
static struct platform_driver sdhci_driver = { static struct platform_driver sdhci_driver = {
.driver = { .driver = {
.name = "sdhci", .name = "sdhci",
.owner = THIS_MODULE,
.pm = &sdhci_pm_ops, .pm = &sdhci_pm_ops,
.of_match_table = of_match_ptr(sdhci_spear_id_table), .of_match_table = of_match_ptr(sdhci_spear_id_table),
}, },
......
...@@ -318,7 +318,6 @@ static int sdhci_tegra_remove(struct platform_device *pdev) ...@@ -318,7 +318,6 @@ static int sdhci_tegra_remove(struct platform_device *pdev)
static struct platform_driver sdhci_tegra_driver = { static struct platform_driver sdhci_tegra_driver = {
.driver = { .driver = {
.name = "sdhci-tegra", .name = "sdhci-tegra",
.owner = THIS_MODULE,
.of_match_table = sdhci_tegra_dt_match, .of_match_table = sdhci_tegra_dt_match,
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
}, },
......
...@@ -1553,7 +1553,6 @@ static struct platform_driver sh_mmcif_driver = { ...@@ -1553,7 +1553,6 @@ static struct platform_driver sh_mmcif_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.pm = &sh_mmcif_dev_pm_ops, .pm = &sh_mmcif_dev_pm_ops,
.owner = THIS_MODULE,
.of_match_table = mmcif_of_match, .of_match_table = mmcif_of_match,
}, },
}; };
......
...@@ -341,7 +341,6 @@ static const struct dev_pm_ops tmio_mmc_dev_pm_ops = { ...@@ -341,7 +341,6 @@ static const struct dev_pm_ops tmio_mmc_dev_pm_ops = {
static struct platform_driver sh_mobile_sdhi_driver = { static struct platform_driver sh_mobile_sdhi_driver = {
.driver = { .driver = {
.name = "sh_mobile_sdhi", .name = "sh_mobile_sdhi",
.owner = THIS_MODULE,
.pm = &tmio_mmc_dev_pm_ops, .pm = &tmio_mmc_dev_pm_ops,
.of_match_table = sh_mobile_sdhi_of_match, .of_match_table = sh_mobile_sdhi_of_match,
}, },
......
...@@ -1035,7 +1035,6 @@ static int sunxi_mmc_remove(struct platform_device *pdev) ...@@ -1035,7 +1035,6 @@ static int sunxi_mmc_remove(struct platform_device *pdev)
static struct platform_driver sunxi_mmc_driver = { static struct platform_driver sunxi_mmc_driver = {
.driver = { .driver = {
.name = "sunxi-mmc", .name = "sunxi-mmc",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(sunxi_mmc_of_match), .of_match_table = of_match_ptr(sunxi_mmc_of_match),
}, },
.probe = sunxi_mmc_probe, .probe = sunxi_mmc_probe,
......
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