Commit c9104b04 authored by Varka Bhadram's avatar Varka Bhadram Committed by David S. Miller

ethernet: ti: remove unwanted THIS_MODULE macro

It removes the owner field updation of driver structure.
It will be automatically updated by module_platform_driver()
Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e403aded
...@@ -1207,7 +1207,6 @@ static int cpmac_remove(struct platform_device *pdev) ...@@ -1207,7 +1207,6 @@ static int cpmac_remove(struct platform_device *pdev)
static struct platform_driver cpmac_driver = { static struct platform_driver cpmac_driver = {
.driver = { .driver = {
.name = "cpmac", .name = "cpmac",
.owner = THIS_MODULE,
}, },
.probe = cpmac_probe, .probe = cpmac_probe,
.remove = cpmac_remove, .remove = cpmac_remove,
......
...@@ -211,7 +211,6 @@ static struct platform_driver cpsw_phy_sel_driver = { ...@@ -211,7 +211,6 @@ static struct platform_driver cpsw_phy_sel_driver = {
.probe = cpsw_phy_sel_probe, .probe = cpsw_phy_sel_probe,
.driver = { .driver = {
.name = "cpsw-phy-sel", .name = "cpsw-phy-sel",
.owner = THIS_MODULE,
.of_match_table = cpsw_phy_sel_id_table, .of_match_table = cpsw_phy_sel_id_table,
}, },
}; };
......
...@@ -2396,7 +2396,6 @@ MODULE_DEVICE_TABLE(of, cpsw_of_mtable); ...@@ -2396,7 +2396,6 @@ MODULE_DEVICE_TABLE(of, cpsw_of_mtable);
static struct platform_driver cpsw_driver = { static struct platform_driver cpsw_driver = {
.driver = { .driver = {
.name = "cpsw", .name = "cpsw",
.owner = THIS_MODULE,
.pm = &cpsw_pm_ops, .pm = &cpsw_pm_ops,
.of_match_table = cpsw_of_mtable, .of_match_table = cpsw_of_mtable,
}, },
......
...@@ -2083,7 +2083,6 @@ MODULE_DEVICE_TABLE(of, davinci_emac_of_match); ...@@ -2083,7 +2083,6 @@ MODULE_DEVICE_TABLE(of, davinci_emac_of_match);
static struct platform_driver davinci_emac_driver = { static struct platform_driver davinci_emac_driver = {
.driver = { .driver = {
.name = "davinci_emac", .name = "davinci_emac",
.owner = THIS_MODULE,
.pm = &davinci_emac_pm_ops, .pm = &davinci_emac_pm_ops,
.of_match_table = of_match_ptr(davinci_emac_of_match), .of_match_table = of_match_ptr(davinci_emac_of_match),
}, },
......
...@@ -481,7 +481,6 @@ MODULE_DEVICE_TABLE(of, davinci_mdio_of_mtable); ...@@ -481,7 +481,6 @@ MODULE_DEVICE_TABLE(of, davinci_mdio_of_mtable);
static struct platform_driver davinci_mdio_driver = { static struct platform_driver davinci_mdio_driver = {
.driver = { .driver = {
.name = "davinci_mdio", .name = "davinci_mdio",
.owner = THIS_MODULE,
.pm = &davinci_mdio_pm_ops, .pm = &davinci_mdio_pm_ops,
.of_match_table = of_match_ptr(davinci_mdio_of_mtable), .of_match_table = of_match_ptr(davinci_mdio_of_mtable),
}, },
......
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