Commit 5884974e authored by Sachin Kamat's avatar Sachin Kamat Committed by David Woodhouse

mtd: bf5xx_nand: Use module_platform_driver()

module_platform_driver macro removes some boilerplate and makes
the code simpler.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent ef54f873
...@@ -874,21 +874,7 @@ static struct platform_driver bf5xx_nand_driver = { ...@@ -874,21 +874,7 @@ static struct platform_driver bf5xx_nand_driver = {
}, },
}; };
static int __init bf5xx_nand_init(void) module_platform_driver(bf5xx_nand_driver);
{
printk(KERN_INFO "%s, Version %s (c) 2007 Analog Devices, Inc.\n",
DRV_DESC, DRV_VERSION);
return platform_driver_register(&bf5xx_nand_driver);
}
static void __exit bf5xx_nand_exit(void)
{
platform_driver_unregister(&bf5xx_nand_driver);
}
module_init(bf5xx_nand_init);
module_exit(bf5xx_nand_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR(DRV_AUTHOR); MODULE_AUTHOR(DRV_AUTHOR);
......
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