mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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 = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = generic_onenand_probe,
|
||||
.remove = generic_onenand_remove,
|
||||
|
@ -804,7 +804,6 @@ static struct platform_driver omap2_onenand_driver = {
|
||||
.shutdown = omap2_onenand_shutdown,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user