mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
mtd: omap2: Use module_platform_driver()
module_platform_driver macro removes some boilerplate and makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
5884974eda
commit
cdb6404cc5
@ -832,19 +832,7 @@ static struct platform_driver omap2_onenand_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init omap2_onenand_init(void)
|
module_platform_driver(omap2_onenand_driver);
|
||||||
{
|
|
||||||
printk(KERN_INFO "OneNAND driver initializing\n");
|
|
||||||
return platform_driver_register(&omap2_onenand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit omap2_onenand_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&omap2_onenand_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(omap2_onenand_init);
|
|
||||||
module_exit(omap2_onenand_exit);
|
|
||||||
|
|
||||||
MODULE_ALIAS("platform:" DRIVER_NAME);
|
MODULE_ALIAS("platform:" DRIVER_NAME);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
Loading…
Reference in New Issue
Block a user