mtd: maps: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:57 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:57 +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/mtd/maps/ixp4xx.c
drivers/mtd/maps/lantiq-flash.c
drivers/mtd/maps/physmap.c
drivers/mtd/maps/physmap_of.c
drivers/mtd/maps/plat-ram.c
drivers/mtd/maps/pxa2xx-flash.c
drivers/mtd/maps/rbtx4939-flash.c
drivers/mtd/maps/sa1100-flash.c
drivers/mtd/maps/sun_uflash.c

index 6a589f1..b443074 100644 (file)
@@ -250,7 +250,6 @@ static struct platform_driver ixp4xx_flash_driver = {
        .remove         = ixp4xx_flash_remove,
        .driver         = {
                .name   = "IXP4XX-Flash",
-               .owner  = THIS_MODULE,
        },
 };
 
index 7aa682c..33d26f5 100644 (file)
@@ -205,7 +205,6 @@ static struct platform_driver ltq_mtd_driver = {
        .remove = ltq_mtd_remove,
        .driver = {
                .name = "ltq-nor",
-               .owner = THIS_MODULE,
                .of_match_table = ltq_mtd_match,
        },
 };
index f73cd46..4305fd6 100644 (file)
@@ -217,7 +217,6 @@ static struct platform_driver physmap_flash_driver = {
        .shutdown       = physmap_flash_shutdown,
        .driver         = {
                .name   = "physmap-flash",
-               .owner  = THIS_MODULE,
        },
 };
 
index c1d21cb..991d0cb 100644 (file)
@@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, of_flash_match);
 static struct platform_driver of_flash_driver = {
        .driver = {
                .name = "of-flash",
-               .owner = THIS_MODULE,
                .of_match_table = of_flash_match,
        },
        .probe          = of_flash_probe,
index d597e89..4b65c08 100644 (file)
@@ -251,7 +251,6 @@ static struct platform_driver platram_driver = {
        .remove         = platram_remove,
        .driver         = {
                .name   = "mtd-ram",
-               .owner  = THIS_MODULE,
        },
 };
 
index cb4d92e..12fa75d 100644 (file)
@@ -131,7 +131,6 @@ static void pxa2xx_flash_shutdown(struct platform_device *dev)
 static struct platform_driver pxa2xx_flash_driver = {
        .driver = {
                .name           = "pxa2xx-flash",
-               .owner          = THIS_MODULE,
        },
        .probe          = pxa2xx_flash_probe,
        .remove         = pxa2xx_flash_remove,
index a84fdfb..5a7551a 100644 (file)
@@ -127,7 +127,6 @@ static struct platform_driver rbtx4939_flash_driver = {
        .shutdown       = rbtx4939_flash_shutdown,
        .driver         = {
                .name   = "rbtx4939-flash",
-               .owner  = THIS_MODULE,
        },
 };
 
index 8fc06bf..ea69720 100644 (file)
@@ -289,7 +289,6 @@ static struct platform_driver sa1100_mtd_driver = {
        .remove         = __exit_p(sa1100_mtd_remove),
        .driver         = {
                .name   = "sa1100-mtd",
-               .owner  = THIS_MODULE,
        },
 };
 
index b6f1aac..d459aca 100644 (file)
@@ -150,7 +150,6 @@ MODULE_DEVICE_TABLE(of, uflash_match);
 static struct platform_driver uflash_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = uflash_match,
        },
        .probe          = uflash_probe,