mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 10:05:00 +08:00
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:
parent
669bb47938
commit
e4e9f7ea2e
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user