Commit 0e906324 authored by Wolfram Sang's avatar Wolfram Sang

net: can: 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 c084b7bb
...@@ -1428,7 +1428,6 @@ static struct platform_driver at91_can_driver = { ...@@ -1428,7 +1428,6 @@ static struct platform_driver at91_can_driver = {
.remove = at91_can_remove, .remove = at91_can_remove,
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(at91_can_dt_ids), .of_match_table = of_match_ptr(at91_can_dt_ids),
}, },
.id_table = at91_can_id_table, .id_table = at91_can_id_table,
......
...@@ -680,7 +680,6 @@ static struct platform_driver bfin_can_driver = { ...@@ -680,7 +680,6 @@ static struct platform_driver bfin_can_driver = {
.resume = bfin_can_resume, .resume = bfin_can_resume,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -1367,7 +1367,6 @@ static SIMPLE_DEV_PM_OPS(flexcan_pm_ops, flexcan_suspend, flexcan_resume); ...@@ -1367,7 +1367,6 @@ static SIMPLE_DEV_PM_OPS(flexcan_pm_ops, flexcan_suspend, flexcan_resume);
static struct platform_driver flexcan_driver = { static struct platform_driver flexcan_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &flexcan_pm_ops, .pm = &flexcan_pm_ops,
.of_match_table = flexcan_of_match, .of_match_table = flexcan_of_match,
}, },
......
...@@ -1738,7 +1738,6 @@ MODULE_DEVICE_TABLE(of, grcan_match); ...@@ -1738,7 +1738,6 @@ MODULE_DEVICE_TABLE(of, grcan_match);
static struct platform_driver grcan_driver = { static struct platform_driver grcan_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = grcan_match, .of_match_table = grcan_match,
}, },
.probe = grcan_probe, .probe = grcan_probe,
......
...@@ -1910,7 +1910,6 @@ static int ican3_remove(struct platform_device *pdev) ...@@ -1910,7 +1910,6 @@ static int ican3_remove(struct platform_device *pdev)
static struct platform_driver ican3_driver = { static struct platform_driver ican3_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
.probe = ican3_probe, .probe = ican3_probe,
.remove = ican3_remove, .remove = ican3_remove,
......
...@@ -906,7 +906,6 @@ MODULE_DEVICE_TABLE(of, rcar_can_of_table); ...@@ -906,7 +906,6 @@ MODULE_DEVICE_TABLE(of, rcar_can_of_table);
static struct platform_driver rcar_can_driver = { static struct platform_driver rcar_can_driver = {
.driver = { .driver = {
.name = RCAR_CAN_DRV_NAME, .name = RCAR_CAN_DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(rcar_can_of_table), .of_match_table = of_match_ptr(rcar_can_of_table),
.pm = &rcar_can_pm_ops, .pm = &rcar_can_pm_ops,
}, },
......
...@@ -1039,7 +1039,6 @@ static int ti_hecc_resume(struct platform_device *pdev) ...@@ -1039,7 +1039,6 @@ static int ti_hecc_resume(struct platform_device *pdev)
static struct platform_driver ti_hecc_driver = { static struct platform_driver ti_hecc_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
.probe = ti_hecc_probe, .probe = ti_hecc_probe,
.remove = ti_hecc_remove, .remove = ti_hecc_remove,
......
...@@ -1194,7 +1194,6 @@ static struct platform_driver xcan_driver = { ...@@ -1194,7 +1194,6 @@ static struct platform_driver xcan_driver = {
.probe = xcan_probe, .probe = xcan_probe,
.remove = xcan_remove, .remove = xcan_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRIVER_NAME, .name = DRIVER_NAME,
.pm = &xcan_dev_pm_ops, .pm = &xcan_dev_pm_ops,
.of_match_table = xcan_of_match, .of_match_table = xcan_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