]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 87a47c0cfd49185b1c5f9198a5945a3e9a51161a..e0d15711e9ac2ae7981247400d0f294eb1c9da37 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 ad76734b3ecc79556ee4eb59e5c2025a10824b48..b1e8851d3cc4cae2b35d2d853f48866bad1922cd 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,