OSDN Git Service

net: can: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:59 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:59 +0000 (16:20 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/net/can/at91_can.c
drivers/net/can/bfin_can.c
drivers/net/can/flexcan.c
drivers/net/can/grcan.c
drivers/net/can/janz-ican3.c
drivers/net/can/rcar_can.c
drivers/net/can/ti_hecc.c
drivers/net/can/xilinx_can.c

index 05e1aa0..d0c2463 100644 (file)
@@ -1428,7 +1428,6 @@ static struct platform_driver at91_can_driver = {
        .remove = at91_can_remove,
        .driver = {
                .name = KBUILD_MODNAME,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(at91_can_dt_ids),
        },
        .id_table = at91_can_id_table,
index 543ecce..417d509 100644 (file)
@@ -680,7 +680,6 @@ static struct platform_driver bfin_can_driver = {
        .resume = bfin_can_resume,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
        },
 };
 
index 60f86bd..f1221b2 100644 (file)
@@ -1367,7 +1367,6 @@ static SIMPLE_DEV_PM_OPS(flexcan_pm_ops, flexcan_suspend, flexcan_resume);
 static struct platform_driver flexcan_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = &flexcan_pm_ops,
                .of_match_table = flexcan_of_match,
        },
index 3fd9fd9..fed1bbd 100644 (file)
@@ -1738,7 +1738,6 @@ MODULE_DEVICE_TABLE(of, grcan_match);
 static struct platform_driver grcan_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = grcan_match,
        },
        .probe = grcan_probe,
index 2382c04..1b11839 100644 (file)
@@ -1910,7 +1910,6 @@ static int ican3_remove(struct platform_device *pdev)
 static struct platform_driver ican3_driver = {
        .driver         = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
        },
        .probe          = ican3_probe,
        .remove         = ican3_remove,
index 1abe133..05d57f7 100644 (file)
@@ -906,7 +906,6 @@ MODULE_DEVICE_TABLE(of, rcar_can_of_table);
 static struct platform_driver rcar_can_driver = {
        .driver = {
                .name = RCAR_CAN_DRV_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(rcar_can_of_table),
                .pm = &rcar_can_pm_ops,
        },
index 258b9c4..9a07eaf 100644 (file)
@@ -1039,7 +1039,6 @@ static int ti_hecc_resume(struct platform_device *pdev)
 static struct platform_driver ti_hecc_driver = {
        .driver = {
                .name    = DRV_NAME,
-               .owner   = THIS_MODULE,
        },
        .probe = ti_hecc_probe,
        .remove = ti_hecc_remove,
index 5e8b560..72fe96f 100644 (file)
@@ -1194,7 +1194,6 @@ static struct platform_driver xcan_driver = {
        .probe = xcan_probe,
        .remove = xcan_remove,
        .driver = {
-               .owner = THIS_MODULE,
                .name = DRIVER_NAME,
                .pm = &xcan_dev_pm_ops,
                .of_match_table = xcan_of_match,