Skip to content

Commit

Permalink
ARM/omap: use module_platform_driver macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srinivas Kandagatla authored and Tony Lindgren committed Dec 17, 2012
1 parent 669bb47 commit e4e9f7e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
module_init(omap_dm_timer_driver_init);
module_exit(omap_dm_timer_driver_exit);
module_platform_driver(omap_dm_timer_driver);

MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver");
MODULE_LICENSE("GPL");
Expand Down

0 comments on commit e4e9f7e

Please sign in to comment.