mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 00:11:22 +00:00
rtc: rtc-at32ap700x: use module_platform_driver_probe()
Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fb34a81204
commit
e835ebc816
@ -302,17 +302,7 @@ static struct platform_driver at32_rtc_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init at32_rtc_init(void)
|
||||
{
|
||||
return platform_driver_probe(&at32_rtc_driver, at32_rtc_probe);
|
||||
}
|
||||
module_init(at32_rtc_init);
|
||||
|
||||
static void __exit at32_rtc_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&at32_rtc_driver);
|
||||
}
|
||||
module_exit(at32_rtc_exit);
|
||||
module_platform_driver_probe(at32_rtc_driver, at32_rtc_probe);
|
||||
|
||||
MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
|
||||
MODULE_DESCRIPTION("Real time clock for AVR32 AT32AP700x");
|
||||
|
Loading…
Reference in New Issue
Block a user