Skip to content

Commit

Permalink
drivers/rtc/rtc-twl.c: cleanup with module_platform_driver() conversion
Browse files Browse the repository at this point in the history
Use module_platform_driver() to register the platform driver.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Peter Ujfalusi authored and Linus Torvalds committed Jul 3, 2013
1 parent d3869ff commit 5ee6748
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/rtc/rtc-twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,17 +626,7 @@ static struct platform_driver twl4030rtc_driver = {
},
};

static int __init twl_rtc_init(void)
{
return platform_driver_register(&twl4030rtc_driver);
}
module_init(twl_rtc_init);

static void __exit twl_rtc_exit(void)
{
platform_driver_unregister(&twl4030rtc_driver);
}
module_exit(twl_rtc_exit);
module_platform_driver(twl4030rtc_driver);

MODULE_AUTHOR("Texas Instruments, MontaVista Software");
MODULE_LICENSE("GPL");

0 comments on commit 5ee6748

Please sign in to comment.