ARM/omap: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Srinivas Kandagatla 2012-12-16 11:30:02 -08:00 committed by Tony Lindgren
parent 669bb47938
commit e4e9f7ea2e

View File

@ -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");