public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe()
@ 2013-03-04  7:57 Jingoo Han
  2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
                   ` (23 more replies)
  0 siblings, 24 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:57 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
	'Jingoo Han'

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/rtc/rtc-ab3100.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/drivers/rtc/rtc-ab3100.c b/drivers/rtc/rtc-ab3100.c
index 261a07e..c2f12d3 100644
--- a/drivers/rtc/rtc-ab3100.c
+++ b/drivers/rtc/rtc-ab3100.c
@@ -257,19 +257,7 @@ static struct platform_driver ab3100_rtc_driver = {
 	.remove	 = __exit_p(ab3100_rtc_remove),
 };
 
-static int __init ab3100_rtc_init(void)
-{
-	return platform_driver_probe(&ab3100_rtc_driver,
-				     ab3100_rtc_probe);
-}
-
-static void __exit ab3100_rtc_exit(void)
-{
-	platform_driver_unregister(&ab3100_rtc_driver);
-}
-
-module_init(ab3100_rtc_init);
-module_exit(ab3100_rtc_exit);
+module_platform_driver_probe(ab3100_rtc_driver, ab3100_rtc_probe);
 
 MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
 MODULE_DESCRIPTION("AB3100 RTC Driver");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2013-03-07  3:32 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
2013-03-04  7:58 ` [PATCH 03/24] rtc: rtc-at91rm9200: " Jingoo Han
2013-03-04  7:59 ` [PATCH 04/24] rtc: rtc-au1xxx: " Jingoo Han
2013-03-04  7:59 ` [PATCH 05/24] rtc: rtc-coh901331: " Jingoo Han
2013-03-07  3:32   ` [rtc-linux] " Linus Walleij
2013-03-04  7:59 ` [PATCH 06/24] rtc: rtc-davinci: " Jingoo Han
2013-03-04  8:00 ` [PATCH 07/24] rtc: rtc-ds1302: " Jingoo Han
2013-03-04  8:00 ` [PATCH 08/24] rtc: rtc-efi: " Jingoo Han
2013-03-04  8:01 ` [PATCH 09/24] rtc: rtc-generic: " Jingoo Han
2013-03-04  8:01 ` [PATCH 10/24] rtc: rtc-imxdi: " Jingoo Han
2013-03-04  8:01 ` [PATCH 11/24] rtc: rtc-mc13xxx: " Jingoo Han
2013-03-04  8:02 ` [PATCH 12/24] rtc: rtc-msm6242: " Jingoo Han
2013-03-04 21:55   ` Geert Uytterhoeven
2013-03-04  8:02 ` [PATCH 13/24] rtc: rtc-mv: " Jingoo Han
2013-03-04  8:03 ` [PATCH 14/24] rtc: rtc-nuc900: " Jingoo Han
2013-03-04  8:03 ` [PATCH 15/24] rtc: rtc-omap: " Jingoo Han
2013-03-04  8:04 ` [PATCH 16/24] rtc: rtc-pcap: " Jingoo Han
2013-03-04  8:04 ` [PATCH 17/24] rtc: rtc-ps3: " Jingoo Han
2013-03-04 21:56   ` Geert Uytterhoeven
2013-03-04  8:04 ` [PATCH 18/24] rtc: rtc-pxa: " Jingoo Han
2013-03-04  8:05 ` [PATCH 19/24] rtc: rtc-rp5c01: " Jingoo Han
2013-03-04 21:56   ` Geert Uytterhoeven
2013-03-04  8:05 ` [PATCH 20/24] rtc: rtc-sh: " Jingoo Han
2013-03-05  7:23   ` Paul Mundt
2013-03-04  8:06 ` [PATCH 21/24] rtc: rtc-starfire: " Jingoo Han
2013-03-04  8:06 ` [PATCH 22/24] rtc: rtc-sun4v: " Jingoo Han
2013-03-04  8:07 ` [PATCH 23/24] rtc: rtc-tegra: " Jingoo Han
2013-03-04  8:07 ` [PATCH 24/24] rtc: rtc-tx4939: " Jingoo Han
2013-03-07  3:31 ` [rtc-linux] [PATCH 01/24] rtc: rtc-ab3100: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox