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

index 093c29ac1a13f75e3dbbfbc354e62e9e3905c8e3..32a216d31141ba91a48f3f3724d7f7659d29dd0e 100644 (file)
@@ -106,7 +106,6 @@ static int generic_onenand_remove(struct platform_device *pdev)
 static struct platform_driver generic_onenand_driver = {
        .driver = {
                .name           = DRIVER_NAME,
-               .owner          = THIS_MODULE,
        },
        .probe          = generic_onenand_probe,
        .remove         = generic_onenand_remove,
index d945473c388201ee67cc5529fd984f5799792512..646ddd6db1b4a24ccd6178f1cad8ff382709de24 100644 (file)
@@ -804,7 +804,6 @@ static struct platform_driver omap2_onenand_driver = {
        .shutdown       = omap2_onenand_shutdown,
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
        },
 };