diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:18:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:22 -0400 |
commit | e835ebc816047f85d1fd834a2a1d5305684a43f2 (patch) | |
tree | cc49b06bfd7d342d7487befa8558dbc107bcd7d2 /drivers/rtc/rtc-at32ap700x.c | |
parent | fb34a8120446593d24dcd29e0b2c7bdac8e8ac6a (diff) |
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>
Diffstat (limited to 'drivers/rtc/rtc-at32ap700x.c')
-rw-r--r-- | drivers/rtc/rtc-at32ap700x.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-at32ap700x.c b/drivers/rtc/rtc-at32ap700x.c index 8dd08305aae1..619c8877f2f1 100644 --- a/drivers/rtc/rtc-at32ap700x.c +++ b/drivers/rtc/rtc-at32ap700x.c | |||
@@ -302,17 +302,7 @@ static struct platform_driver at32_rtc_driver = { | |||
302 | }, | 302 | }, |
303 | }; | 303 | }; |
304 | 304 | ||
305 | static int __init at32_rtc_init(void) | 305 | module_platform_driver_probe(at32_rtc_driver, at32_rtc_probe); |
306 | { | ||
307 | return platform_driver_probe(&at32_rtc_driver, at32_rtc_probe); | ||
308 | } | ||
309 | module_init(at32_rtc_init); | ||
310 | |||
311 | static void __exit at32_rtc_exit(void) | ||
312 | { | ||
313 | platform_driver_unregister(&at32_rtc_driver); | ||
314 | } | ||
315 | module_exit(at32_rtc_exit); | ||
316 | 306 | ||
317 | MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>"); | 307 | MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>"); |
318 | MODULE_DESCRIPTION("Real time clock for AVR32 AT32AP700x"); | 308 | MODULE_DESCRIPTION("Real time clock for AVR32 AT32AP700x"); |