Commit fe5e4825 authored by Wolfram Sang's avatar Wolfram Sang

mtd: maps: 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: default avatarWolfram Sang <wsa@the-dreams.de>
parent c37c1e16
...@@ -250,7 +250,6 @@ static struct platform_driver ixp4xx_flash_driver = { ...@@ -250,7 +250,6 @@ static struct platform_driver ixp4xx_flash_driver = {
.remove = ixp4xx_flash_remove, .remove = ixp4xx_flash_remove,
.driver = { .driver = {
.name = "IXP4XX-Flash", .name = "IXP4XX-Flash",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -205,7 +205,6 @@ static struct platform_driver ltq_mtd_driver = { ...@@ -205,7 +205,6 @@ static struct platform_driver ltq_mtd_driver = {
.remove = ltq_mtd_remove, .remove = ltq_mtd_remove,
.driver = { .driver = {
.name = "ltq-nor", .name = "ltq-nor",
.owner = THIS_MODULE,
.of_match_table = ltq_mtd_match, .of_match_table = ltq_mtd_match,
}, },
}; };
......
...@@ -217,7 +217,6 @@ static struct platform_driver physmap_flash_driver = { ...@@ -217,7 +217,6 @@ static struct platform_driver physmap_flash_driver = {
.shutdown = physmap_flash_shutdown, .shutdown = physmap_flash_shutdown,
.driver = { .driver = {
.name = "physmap-flash", .name = "physmap-flash",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, of_flash_match); ...@@ -354,7 +354,6 @@ MODULE_DEVICE_TABLE(of, of_flash_match);
static struct platform_driver of_flash_driver = { static struct platform_driver of_flash_driver = {
.driver = { .driver = {
.name = "of-flash", .name = "of-flash",
.owner = THIS_MODULE,
.of_match_table = of_flash_match, .of_match_table = of_flash_match,
}, },
.probe = of_flash_probe, .probe = of_flash_probe,
......
...@@ -251,7 +251,6 @@ static struct platform_driver platram_driver = { ...@@ -251,7 +251,6 @@ static struct platform_driver platram_driver = {
.remove = platram_remove, .remove = platram_remove,
.driver = { .driver = {
.name = "mtd-ram", .name = "mtd-ram",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -131,7 +131,6 @@ static void pxa2xx_flash_shutdown(struct platform_device *dev) ...@@ -131,7 +131,6 @@ static void pxa2xx_flash_shutdown(struct platform_device *dev)
static struct platform_driver pxa2xx_flash_driver = { static struct platform_driver pxa2xx_flash_driver = {
.driver = { .driver = {
.name = "pxa2xx-flash", .name = "pxa2xx-flash",
.owner = THIS_MODULE,
}, },
.probe = pxa2xx_flash_probe, .probe = pxa2xx_flash_probe,
.remove = pxa2xx_flash_remove, .remove = pxa2xx_flash_remove,
......
...@@ -127,7 +127,6 @@ static struct platform_driver rbtx4939_flash_driver = { ...@@ -127,7 +127,6 @@ static struct platform_driver rbtx4939_flash_driver = {
.shutdown = rbtx4939_flash_shutdown, .shutdown = rbtx4939_flash_shutdown,
.driver = { .driver = {
.name = "rbtx4939-flash", .name = "rbtx4939-flash",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -289,7 +289,6 @@ static struct platform_driver sa1100_mtd_driver = { ...@@ -289,7 +289,6 @@ static struct platform_driver sa1100_mtd_driver = {
.remove = __exit_p(sa1100_mtd_remove), .remove = __exit_p(sa1100_mtd_remove),
.driver = { .driver = {
.name = "sa1100-mtd", .name = "sa1100-mtd",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -150,7 +150,6 @@ MODULE_DEVICE_TABLE(of, uflash_match); ...@@ -150,7 +150,6 @@ MODULE_DEVICE_TABLE(of, uflash_match);
static struct platform_driver uflash_driver = { static struct platform_driver uflash_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = uflash_match, .of_match_table = uflash_match,
}, },
.probe = uflash_probe, .probe = uflash_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment