]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: remove .owner field for drivers using module_platform_driver
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 12 Aug 2014 16:14:25 +0000 (17:14 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:04 +0000 (13:59 +0200)
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: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
28 files changed:
drivers/mmc/host/jz4740_mmc.c
drivers/mmc/host/moxart-mmc.c
drivers/mmc/host/mxcmmc.c
drivers/mmc/host/mxs-mmc.c
drivers/mmc/host/omap.c
drivers/mmc/host/omap_hsmmc.c
drivers/mmc/host/pxamci.c
drivers/mmc/host/rtsx_pci_sdmmc.c
drivers/mmc/host/rtsx_usb_sdmmc.c
drivers/mmc/host/s3cmci.c
drivers/mmc/host/sdhci-bcm-kona.c
drivers/mmc/host/sdhci-bcm2835.c
drivers/mmc/host/sdhci-cns3xxx.c
drivers/mmc/host/sdhci-dove.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-msm.c
drivers/mmc/host/sdhci-of-arasan.c
drivers/mmc/host/sdhci-of-esdhc.c
drivers/mmc/host/sdhci-of-hlwd.c
drivers/mmc/host/sdhci-pxav2.c
drivers/mmc/host/sdhci-pxav3.c
drivers/mmc/host/sdhci-s3c.c
drivers/mmc/host/sdhci-sirf.c
drivers/mmc/host/sdhci-spear.c
drivers/mmc/host/sdhci-tegra.c
drivers/mmc/host/sh_mmcif.c
drivers/mmc/host/sh_mobile_sdhi.c
drivers/mmc/host/sunxi-mmc.c

index 14738cddcadbeeb9e3ce0a30cb771b916203ee14..76e8bce6f46e7015bb6ae9e3dfe082d2cf58db35 100644 (file)
@@ -1161,7 +1161,6 @@ static struct platform_driver jz4740_mmc_driver = {
        .remove = jz4740_mmc_remove,
        .driver = {
                .name = "jz4740-mmc",
-               .owner = THIS_MODULE,
                .pm = JZ4740_MMC_PM_OPS,
        },
 };
index b4b1efbf6c165c21aa1d8f1fe13e6bc9efb57f09..f3e18d08e8529e05e443395bfbf3cc73b1c3496a 100644 (file)
@@ -717,7 +717,6 @@ static struct platform_driver moxart_mmc_driver = {
        .remove     = moxart_remove,
        .driver     = {
                .name           = "mmc-moxart",
-               .owner          = THIS_MODULE,
                .of_match_table = moxart_mmc_match,
        },
 };
index ed1cb93c3784b54a62916e9aeb0540db2bf303e6..ad111422ad55b9dbbf3b83dacd0aaf33c286a204 100644 (file)
@@ -1238,7 +1238,6 @@ static struct platform_driver mxcmci_driver = {
        .id_table       = mxcmci_devtype,
        .driver         = {
                .name           = DRIVER_NAME,
-               .owner          = THIS_MODULE,
                .pm     = &mxcmci_pm_ops,
                .of_match_table = mxcmci_of_match,
        }
index 140885a5a4e734bbcb3806e39e7601503e1cf599..cd74e5143c36a2d2c90641e45723920364ca08b1 100644 (file)
@@ -735,7 +735,6 @@ static struct platform_driver mxs_mmc_driver = {
        .id_table       = mxs_ssp_ids,
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm     = &mxs_mmc_pm_ops,
 #endif
index 81974ecdfcbcb7a1649eee6eeab7a14dd8f49600..68dd6c79c378c8a355a36e23300eb996bfcbc720 100644 (file)
@@ -1494,7 +1494,6 @@ static struct platform_driver mmc_omap_driver = {
        .remove         = mmc_omap_remove,
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(mmc_omap_match),
        },
 };
index 965672663ef066a3b2e58c5f1a2478c5becdfdda..ece163493a54a3f68e23c635f8744a04f84ac0ce 100644 (file)
@@ -2489,7 +2489,6 @@ static struct platform_driver omap_hsmmc_driver = {
        .remove         = omap_hsmmc_remove,
        .driver         = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &omap_hsmmc_dev_pm_ops,
                .of_match_table = of_match_ptr(omap_mmc_of_match),
        },
index 32fe11323f39e10bee30cac93daa0ba94e771939..0971a234f4491aa7d28e1f4d960482325c7a4166 100644 (file)
@@ -885,7 +885,6 @@ static struct platform_driver pxamci_driver = {
        .remove         = pxamci_remove,
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pxa_mmc_dt_ids),
        },
 };
index b2537e2f26b1992e3ba7618e9624213df9036f67..d928216b6b5f67d5df7abd4ea7ee2b55d7a4bb0b 100644 (file)
@@ -1423,7 +1423,6 @@ static struct platform_driver rtsx_pci_sdmmc_driver = {
        .remove         = rtsx_pci_sdmmc_drv_remove,
        .id_table       = rtsx_pci_sdmmc_ids,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = DRV_NAME_RTSX_PCI_SDMMC,
        },
 };
index d9153a7d160d09b7086747788820fb1515c466dd..e46c574fa5741af960a341a108d13338fd2478d7 100644 (file)
@@ -1452,7 +1452,6 @@ static struct platform_driver rtsx_usb_sdmmc_driver = {
        .remove         = rtsx_usb_sdmmc_drv_remove,
        .id_table       = rtsx_usb_sdmmc_ids,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "rtsx_usb_sdmmc",
        },
 };
index e5516a226362dc0c4e98c39215bfe2c55f87b992..e4e1a53881632a905aea04a24df0eed1769208ce 100644 (file)
@@ -1874,7 +1874,6 @@ MODULE_DEVICE_TABLE(platform, s3cmci_driver_ids);
 static struct platform_driver s3cmci_driver = {
        .driver = {
                .name   = "s3c-sdi",
-               .owner  = THIS_MODULE,
        },
        .id_table       = s3cmci_driver_ids,
        .probe          = s3cmci_probe,
index dd780c315a638edbfb90dbdae818472f927a0c5e..2245988a01a9f1533f880a70e88bb9a80ba4c9a2 100644 (file)
@@ -359,7 +359,6 @@ static int sdhci_bcm_kona_remove(struct platform_device *pdev)
 static struct platform_driver sdhci_bcm_kona_driver = {
        .driver         = {
                .name   = "sdhci-kona",
-               .owner  = THIS_MODULE,
                .pm     = SDHCI_PLTFM_PMOPS,
                .of_match_table = sdhci_bcm_kona_of_match,
        },
index 46af9a439d7b48c772f68352253ba23641d756ea..439d259fdf1d571336fe86a3b3de483143430517 100644 (file)
@@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_sdhci_of_match);
 static struct platform_driver bcm2835_sdhci_driver = {
        .driver = {
                .name = "sdhci-bcm2835",
-               .owner = THIS_MODULE,
                .of_match_table = bcm2835_sdhci_of_match,
                .pm = SDHCI_PLTFM_PMOPS,
        },
index 14b74075589afd5b24ce594bb0b42adf7f5ae1cc..a7935a8d0922218f0874deea4e7f303a35dbb685 100644 (file)
@@ -106,7 +106,6 @@ static int sdhci_cns3xxx_remove(struct platform_device *pdev)
 static struct platform_driver sdhci_cns3xxx_driver = {
        .driver         = {
                .name   = "sdhci-cns3xxx",
-               .owner  = THIS_MODULE,
                .pm     = SDHCI_PLTFM_PMOPS,
        },
        .probe          = sdhci_cns3xxx_probe,
index e6278ec007d775c576346102e358426e08c3edbe..ca969d271a270bfb0bcb6e56fc3626f7398218a5 100644 (file)
@@ -146,7 +146,6 @@ MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table);
 static struct platform_driver sdhci_dove_driver = {
        .driver         = {
                .name   = "sdhci-dove",
-               .owner  = THIS_MODULE,
                .pm     = SDHCI_PLTFM_PMOPS,
                .of_match_table = sdhci_dove_of_match_table,
        },
index ccec0e32590f6b5f9336f0fc77df279e429756a2..46677f09ad562832c064205b837b58d993733929 100644 (file)
@@ -1207,7 +1207,6 @@ static const struct dev_pm_ops sdhci_esdhc_pmops = {
 static struct platform_driver sdhci_esdhc_imx_driver = {
        .driver         = {
                .name   = "sdhci-esdhc-imx",
-               .owner  = THIS_MODULE,
                .of_match_table = imx_esdhc_dt_ids,
                .pm     = &sdhci_esdhc_pmops,
        },
index 1a6661ed62050fda39cea0a57428abd2bb09e9e0..2f19eabac3eac6f1f9462c613c0caef5ea4d2ab0 100644 (file)
@@ -610,7 +610,6 @@ static struct platform_driver sdhci_msm_driver = {
        .remove = sdhci_msm_remove,
        .driver = {
                   .name = "sdhci_msm",
-                  .owner = THIS_MODULE,
                   .of_match_table = sdhci_msm_dt_match,
        },
 };
index 5bd1092310f2e6c1b742ce11e3b590119be66435..981d66e5c023147d99ae35a6e9e985e453800058 100644 (file)
@@ -213,7 +213,6 @@ MODULE_DEVICE_TABLE(of, sdhci_arasan_of_match);
 static struct platform_driver sdhci_arasan_driver = {
        .driver = {
                .name = "sdhci-arasan",
-               .owner = THIS_MODULE,
                .of_match_table = sdhci_arasan_of_match,
                .pm = &sdhci_arasan_dev_pm_ops,
        },
index 8be4dcfb49a05f12c2f2711323e321af8f529625..8872c85c63d4a9dc7e9bfddaefe28f7ab8e55fb2 100644 (file)
@@ -388,7 +388,6 @@ MODULE_DEVICE_TABLE(of, sdhci_esdhc_of_match);
 static struct platform_driver sdhci_esdhc_driver = {
        .driver = {
                .name = "sdhci-esdhc",
-               .owner = THIS_MODULE,
                .of_match_table = sdhci_esdhc_of_match,
                .pm = ESDHC_PMOPS,
        },
index b341661369a20a645ea3356e2d8a71cfb42a9ee0..be479279a1d55479bad67654e855fa71781678ea 100644 (file)
@@ -89,7 +89,6 @@ MODULE_DEVICE_TABLE(of, sdhci_hlwd_of_match);
 static struct platform_driver sdhci_hlwd_driver = {
        .driver = {
                .name = "sdhci-hlwd",
-               .owner = THIS_MODULE,
                .of_match_table = sdhci_hlwd_of_match,
                .pm = SDHCI_PLTFM_PMOPS,
        },
index 3c0f3c0a1cc86969f5f72dfaa27d6fdc2f083b58..b4c23e983baf221c62d81ba0f957d2674e3296a4 100644 (file)
@@ -261,7 +261,6 @@ static int sdhci_pxav2_remove(struct platform_device *pdev)
 static struct platform_driver sdhci_pxav2_driver = {
        .driver         = {
                .name   = "sdhci-pxav2",
-               .owner  = THIS_MODULE,
 #ifdef CONFIG_OF
                .of_match_table = sdhci_pxav2_of_match,
 #endif
index 6f842fb8e6b81834de13f0ffef3e19af2b9cb3a0..cca08b0c8c3e523e7925bae28ebb56d8249b6a07 100644 (file)
@@ -492,7 +492,6 @@ static struct platform_driver sdhci_pxav3_driver = {
 #ifdef CONFIG_OF
                .of_match_table = sdhci_pxav3_of_match,
 #endif
-               .owner  = THIS_MODULE,
                .pm     = SDHCI_PXAV3_PMOPS,
        },
        .probe          = sdhci_pxav3_probe,
index 1e47903fa1844b91ae5bd5ceadb9079df0c5647e..0ce6eb17deaf5b6361199ed2e8583f7bd72c5b56 100644 (file)
@@ -747,7 +747,6 @@ static struct platform_driver sdhci_s3c_driver = {
        .remove         = sdhci_s3c_remove,
        .id_table       = sdhci_s3c_driver_ids,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "s3c-sdhci",
                .of_match_table = of_match_ptr(sdhci_s3c_dt_match),
                .pm     = SDHCI_S3C_PMOPS,
index 17004531d089e6c2bce4fc33d319f6fdf3cb377f..e15dc891ba011b2ae8e628043d77dd40d536600e 100644 (file)
@@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, sdhci_sirf_of_match);
 static struct platform_driver sdhci_sirf_driver = {
        .driver         = {
                .name   = "sdhci-sirf",
-               .owner  = THIS_MODULE,
                .of_match_table = sdhci_sirf_of_match,
 #ifdef CONFIG_PM_SLEEP
                .pm     = &sdhci_sirf_pm_ops,
index 9d535c7336ef8425ab40bc6d6abea91553f17294..22e58268545f0b028ee3cd82d4fa7e50a49a4558 100644 (file)
@@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, sdhci_spear_id_table);
 static struct platform_driver sdhci_driver = {
        .driver = {
                .name   = "sdhci",
-               .owner  = THIS_MODULE,
                .pm     = &sdhci_pm_ops,
                .of_match_table = of_match_ptr(sdhci_spear_id_table),
        },
index 33100d10d17685b732279dc5c2d42b3f8950ee97..59797106af930c874eb0558ea368a5225ba2a461 100644 (file)
@@ -318,7 +318,6 @@ static int sdhci_tegra_remove(struct platform_device *pdev)
 static struct platform_driver sdhci_tegra_driver = {
        .driver         = {
                .name   = "sdhci-tegra",
-               .owner  = THIS_MODULE,
                .of_match_table = sdhci_tegra_dt_match,
                .pm     = SDHCI_PLTFM_PMOPS,
        },
index d11708c815d721ba7dd9626ff21a523331ac4392..7d9d6a3215210f537b1b6e46070b610320f80ff5 100644 (file)
@@ -1553,7 +1553,6 @@ static struct platform_driver sh_mmcif_driver = {
        .driver         = {
                .name   = DRIVER_NAME,
                .pm     = &sh_mmcif_dev_pm_ops,
-               .owner  = THIS_MODULE,
                .of_match_table = mmcif_of_match,
        },
 };
index 91058dabd11afdbe443633140f2732462709d024..be5e25ddab535cdb30be6b01ed573160fd808adf 100644 (file)
@@ -341,7 +341,6 @@ static const struct dev_pm_ops tmio_mmc_dev_pm_ops = {
 static struct platform_driver sh_mobile_sdhi_driver = {
        .driver         = {
                .name   = "sh_mobile_sdhi",
-               .owner  = THIS_MODULE,
                .pm     = &tmio_mmc_dev_pm_ops,
                .of_match_table = sh_mobile_sdhi_of_match,
        },
index 024f67c98cdcad3b741e3b5ec39ad8b17a670d8c..dafe5001a46e494ec8fa41096e9d91e9c37ccb02 100644 (file)
@@ -1035,7 +1035,6 @@ static int sunxi_mmc_remove(struct platform_device *pdev)
 static struct platform_driver sunxi_mmc_driver = {
        .driver = {
                .name   = "sunxi-mmc",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(sunxi_mmc_of_match),
        },
        .probe          = sunxi_mmc_probe,