net: can: cc770: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:00 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:00 +0000 (16:21 +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/cc770/cc770_isa.c
drivers/net/can/cc770/cc770_platform.c

index 87a47c0..e0d1571 100644 (file)
@@ -318,7 +318,6 @@ static struct platform_driver cc770_isa_driver = {
        .remove = cc770_isa_remove,
        .driver = {
                .name = KBUILD_MODNAME,
-               .owner = THIS_MODULE,
        },
 };
 
index ad76734..b1e8851 100644 (file)
@@ -264,7 +264,6 @@ MODULE_DEVICE_TABLE(of, cc770_platform_table);
 static struct platform_driver cc770_platform_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = cc770_platform_table,
        },
        .probe = cc770_platform_probe,