]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ethernet: ti: remove unwanted THIS_MODULE macro
authorVarka Bhadram <varkabhadram@gmail.com>
Mon, 8 Sep 2014 03:58:19 +0000 (09:28 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 18:59:14 +0000 (11:59 -0700)
It removes the owner field updation of driver structure.
It will be automatically updated by module_platform_driver()

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpmac.c
drivers/net/ethernet/ti/cpsw-phy-sel.c
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/davinci_emac.c
drivers/net/ethernet/ti/davinci_mdio.c

index f9bcf7aa88ca3a2d6aa4b607bd134e0c36fc6d91..dd9430043536541b577a4b90418cebb33a67baf3 100644 (file)
@@ -1207,7 +1207,6 @@ static int cpmac_remove(struct platform_device *pdev)
 static struct platform_driver cpmac_driver = {
        .driver = {
                .name   = "cpmac",
-               .owner  = THIS_MODULE,
        },
        .probe  = cpmac_probe,
        .remove = cpmac_remove,
index aa8bf45e53dc9b0ddab4265b2e527067339a00fc..0ea78326cc2165d63b82eff89c5b90a49ecb9ac5 100644 (file)
@@ -211,7 +211,6 @@ static struct platform_driver cpsw_phy_sel_driver = {
        .probe          = cpsw_phy_sel_probe,
        .driver         = {
                .name   = "cpsw-phy-sel",
-               .owner  = THIS_MODULE,
                .of_match_table = cpsw_phy_sel_id_table,
        },
 };
index 76e73687d720156f379268c59d7ebf078d697435..5c3f1f3ad16f68e397ca7873a013577d320c8b7b 100644 (file)
@@ -2396,7 +2396,6 @@ MODULE_DEVICE_TABLE(of, cpsw_of_mtable);
 static struct platform_driver cpsw_driver = {
        .driver = {
                .name    = "cpsw",
-               .owner   = THIS_MODULE,
                .pm      = &cpsw_pm_ops,
                .of_match_table = cpsw_of_mtable,
        },
index 35a139e9a833520a195d16a7c620d423638eb90c..ea712512c7d1f5e155129bf073cac1d7381d38bb 100644 (file)
@@ -2083,7 +2083,6 @@ MODULE_DEVICE_TABLE(of, davinci_emac_of_match);
 static struct platform_driver davinci_emac_driver = {
        .driver = {
                .name    = "davinci_emac",
-               .owner   = THIS_MODULE,
                .pm      = &davinci_emac_pm_ops,
                .of_match_table = of_match_ptr(davinci_emac_of_match),
        },
index 2791f6f2db1178e8f5ce0e0f2a9ecad9f87cffba..98655b44b97e2d7690ef2fa28156730697098d2b 100644 (file)
@@ -481,7 +481,6 @@ MODULE_DEVICE_TABLE(of, davinci_mdio_of_mtable);
 static struct platform_driver davinci_mdio_driver = {
        .driver = {
                .name    = "davinci_mdio",
-               .owner   = THIS_MODULE,
                .pm      = &davinci_mdio_pm_ops,
                .of_match_table = of_match_ptr(davinci_mdio_of_mtable),
        },