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>
This commit is contained in:
parent
50e23b4599
commit
5c1a77c7fd
|
@ -106,7 +106,6 @@ static int generic_onenand_remove(struct platform_device *pdev)
|
||||||
static struct platform_driver generic_onenand_driver = {
|
static struct platform_driver generic_onenand_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = generic_onenand_probe,
|
.probe = generic_onenand_probe,
|
||||||
.remove = generic_onenand_remove,
|
.remove = generic_onenand_remove,
|
||||||
|
|
|
@ -804,7 +804,6 @@ static struct platform_driver omap2_onenand_driver = {
|
||||||
.shutdown = omap2_onenand_shutdown,
|
.shutdown = omap2_onenand_shutdown,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue