Commit 8e64eb49 authored by Felipe Balbi's avatar Felipe Balbi Committed by Kevin Hilman

mtd: nand: davinci: use platform_driver_probe()

NAND devices can't be hotpluggable. We can use that
to shrink code size a bit by using platform_driver_probe().
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
parent e9a259ba
......@@ -663,7 +663,6 @@ static int __exit nand_davinci_remove(struct platform_device *pdev)
}
static struct platform_driver nand_davinci_driver = {
.probe = nand_davinci_probe,
.remove = __exit_p(nand_davinci_remove),
.driver = {
.name = DRIVER_NAME,
......@@ -672,7 +671,7 @@ static struct platform_driver nand_davinci_driver = {
static int __init nand_davinci_init(void)
{
return platform_driver_register(&nand_davinci_driver);
return platform_driver_probe(&nand_davinci_driver, nand_davinci_probe);
}
module_init(nand_davinci_init);
......
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