mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/rtc/rtc-ds1216.c: use module_platform_driver_probe()
Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Fabio Porcedda <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1d2e2b65d0
commit
061d2a3e39
1 changed files with 1 additions and 12 deletions
|
|
@ -174,21 +174,10 @@ static struct platform_driver ds1216_rtc_platform_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init ds1216_rtc_init(void)
|
||||
{
|
||||
return platform_driver_probe(&ds1216_rtc_platform_driver, ds1216_rtc_probe);
|
||||
}
|
||||
|
||||
static void __exit ds1216_rtc_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&ds1216_rtc_platform_driver);
|
||||
}
|
||||
module_platform_driver_probe(ds1216_rtc_platform_driver, ds1216_rtc_probe);
|
||||
|
||||
MODULE_AUTHOR("Thomas Bogendoerfer <[email protected]>");
|
||||
MODULE_DESCRIPTION("DS1216 RTC driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_ALIAS("platform:rtc-ds1216");
|
||||
|
||||
module_init(ds1216_rtc_init);
|
||||
module_exit(ds1216_rtc_exit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue