提交 c69ad0ef 编写于 作者: S Sachin Kamat 提交者: Brian Norris

mtd: fsl_ifc_nand: Use module_platform_driver

module_platform_driver removes boiler plate code and makes it
simpler.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 bcecd39e
...@@ -1079,25 +1079,7 @@ static struct platform_driver fsl_ifc_nand_driver = { ...@@ -1079,25 +1079,7 @@ static struct platform_driver fsl_ifc_nand_driver = {
.remove = fsl_ifc_nand_remove, .remove = fsl_ifc_nand_remove,
}; };
static int __init fsl_ifc_nand_init(void) module_platform_driver(fsl_ifc_nand_driver);
{
int ret;
ret = platform_driver_register(&fsl_ifc_nand_driver);
if (ret)
printk(KERN_ERR "fsl-ifc: Failed to register platform"
"driver\n");
return ret;
}
static void __exit fsl_ifc_nand_exit(void)
{
platform_driver_unregister(&fsl_ifc_nand_driver);
}
module_init(fsl_ifc_nand_init);
module_exit(fsl_ifc_nand_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Freescale"); MODULE_AUTHOR("Freescale");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册