diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:20:59 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:20:59 -0400 |
commit | 5c1a77c7fd816c9e9c4c08132876fcb757732649 (patch) | |
tree | c5583cd4612ad166ddeb29e8574c81e2f8edd1ca | |
parent | 50e23b45999a54a0c9f2865a738559d95c8ecd62 (diff) |
mtd: onenand: drop owner assignment from platform_drivers
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>
-rw-r--r-- | drivers/mtd/onenand/generic.c | 1 | ||||
-rw-r--r-- | drivers/mtd/onenand/omap2.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c index 093c29ac1a13..32a216d31141 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c | |||
@@ -106,7 +106,6 @@ static int generic_onenand_remove(struct platform_device *pdev) | |||
106 | static struct platform_driver generic_onenand_driver = { | 106 | static struct platform_driver generic_onenand_driver = { |
107 | .driver = { | 107 | .driver = { |
108 | .name = DRIVER_NAME, | 108 | .name = DRIVER_NAME, |
109 | .owner = THIS_MODULE, | ||
110 | }, | 109 | }, |
111 | .probe = generic_onenand_probe, | 110 | .probe = generic_onenand_probe, |
112 | .remove = generic_onenand_remove, | 111 | .remove = generic_onenand_remove, |
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index d945473c3882..646ddd6db1b4 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c | |||
@@ -804,7 +804,6 @@ static struct platform_driver omap2_onenand_driver = { | |||
804 | .shutdown = omap2_onenand_shutdown, | 804 | .shutdown = omap2_onenand_shutdown, |
805 | .driver = { | 805 | .driver = { |
806 | .name = DRIVER_NAME, | 806 | .name = DRIVER_NAME, |
807 | .owner = THIS_MODULE, | ||
808 | }, | 807 | }, |
809 | }; | 808 | }; |
810 | 809 | ||