Commit e4e9f7ea authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Tony Lindgren

ARM/omap: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 669bb479
...@@ -898,19 +898,8 @@ static struct platform_driver omap_dm_timer_driver = { ...@@ -898,19 +898,8 @@ static struct platform_driver omap_dm_timer_driver = {
}, },
}; };
static int __init omap_dm_timer_driver_init(void)
{
return platform_driver_register(&omap_dm_timer_driver);
}
static void __exit omap_dm_timer_driver_exit(void)
{
platform_driver_unregister(&omap_dm_timer_driver);
}
early_platform_init("earlytimer", &omap_dm_timer_driver); early_platform_init("earlytimer", &omap_dm_timer_driver);
module_init(omap_dm_timer_driver_init); module_platform_driver(omap_dm_timer_driver);
module_exit(omap_dm_timer_driver_exit);
MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver"); MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
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