Skip to content

Commit

Permalink
rtc-puv3: using module_platform_driver()
Browse files Browse the repository at this point in the history
This patch converts the driver to use the module_platform_driver()
macro which makes the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
  • Loading branch information
Guan Xuetao committed Jan 10, 2012
1 parent 858af58 commit 60e2b00
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/rtc/rtc-puv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,7 @@ static struct platform_driver puv3_rtcdrv = {
}
};

static char __initdata banner[] = "PKUnity-v3 RTC, (c) 2009 PKUnity Co.\n";

static int __init puv3_rtc_init(void)
{
printk(banner);
return platform_driver_register(&puv3_rtcdrv);
}

static void __exit puv3_rtc_exit(void)
{
platform_driver_unregister(&puv3_rtcdrv);
}

module_init(puv3_rtc_init);
module_exit(puv3_rtc_exit);
module_platform_driver(puv3_rtcdrv);

MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip");
MODULE_AUTHOR("Hu Dongliang");
Expand Down

0 comments on commit 60e2b00

Please sign in to comment.