]> git.karo-electronics.de Git - linux-beck.git/commitdiff
block: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:18 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:18 +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/block/amiflop.c
drivers/block/mg_disk.c
drivers/block/swim.c

index 758da2287d9a3d01143c1d588c6f28dbbf0d8c14..5fd50a2841682b5a2479cfd210e3ab1a38a9d8fd 100644 (file)
@@ -1864,7 +1864,6 @@ static int __exit amiga_floppy_remove(struct platform_device *pdev)
 static struct platform_driver amiga_floppy_driver = {
        .driver   = {
                .name   = "amiga-floppy",
-               .owner  = THIS_MODULE,
        },
 };
 
index e352cac707e82f5193324c1feafc6296d86bd219..145ce2aa2e78ab3700deadb9792da9b2166dff58 100644 (file)
@@ -1082,7 +1082,6 @@ static struct platform_driver mg_disk_driver = {
        .remove = mg_remove,
        .driver = {
                .name = MG_DEV_NAME,
-               .owner = THIS_MODULE,
                .pm = &mg_pm,
        }
 };
index 6b44bbe528b7b1089296f52d54d9c6aa8ed90f81..b5afd495d482e8971be1cc431bb7b0ea8b54cae2 100644 (file)
@@ -971,7 +971,6 @@ static struct platform_driver swim_driver = {
        .remove = swim_remove,
        .driver   = {
                .name   = CARDNAME,
-               .owner  = THIS_MODULE,
        },
 };