mtd: devices: 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/devices/bcm47xxsflash.c
drivers/mtd/devices/docg3.c
drivers/mtd/devices/spear_smi.c
drivers/mtd/devices/st_spi_fsm.c

index 77de29bc02ba03069609d6aeff8afa9691cf8d4c..3d008a9410be9fae399c6ada3504c11fec8368aa 100644 (file)
@@ -329,7 +329,6 @@ static struct platform_driver bcma_sflash_driver = {
        .remove = bcm47xxsflash_bcma_remove,
        .driver = {
                .name = "bcma_sflash",
-               .owner = THIS_MODULE,
        },
 };
 
index 21cc4b66feaabdd24d24557df73b60b3ae07f8e0..72346048532d4887b40f79891a8354d0b21552c0 100644 (file)
@@ -2129,7 +2129,6 @@ static int __exit docg3_release(struct platform_device *pdev)
 static struct platform_driver g3_driver = {
        .driver         = {
                .name   = "docg3",
-               .owner  = THIS_MODULE,
        },
        .suspend        = docg3_suspend,
        .resume         = docg3_resume,
index c4176b0f382d20702ff4e592593704b80e0f128c..508bab3bd0c49b555b3cacf803f93b153b46ce13 100644 (file)
@@ -1079,7 +1079,6 @@ static struct platform_driver spear_smi_driver = {
        .driver = {
                .name = "smi",
                .bus = &platform_bus_type,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(spear_smi_id_table),
                .pm = &spear_smi_pm_ops,
        },
index d252514d3e98e00343d6a3f7e8e1e63151d0d7d5..54ffe5223e64294558c1189316d61d3e23b50aed 100644 (file)
@@ -2069,7 +2069,6 @@ static struct platform_driver stfsm_driver = {
        .remove         = stfsm_remove,
        .driver         = {
                .name   = "st-spi-fsm",
-               .owner  = THIS_MODULE,
                .of_match_table = stfsm_match,
        },
 };