From: Jingoo Han <jg1.han@samsung.com>
To: "'Andrew Morton'" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
"'Alessandro Zummo'" <a.zummo@towertech.it>,
rtc-linux@googlegroups.com, "'Jingoo Han'" <jg1.han@samsung.com>
Subject: [PATCH 08/24] rtc: rtc-efi: use module_platform_driver_probe()
Date: Mon, 04 Mar 2013 17:00:33 +0900 [thread overview]
Message-ID: <014101ce18ae$5911fbd0$0b35f370$%han@samsung.com> (raw)
In-Reply-To: <013a01ce18ad$e45caa10$ad15fe30$%han@samsung.com>
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-efi.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c
index 1a0c37c..e706662 100644
--- a/drivers/rtc/rtc-efi.c
+++ b/drivers/rtc/rtc-efi.c
@@ -218,18 +218,7 @@ static struct platform_driver efi_rtc_driver = {
.remove = __exit_p(efi_rtc_remove),
};
-static int __init efi_rtc_init(void)
-{
- return platform_driver_probe(&efi_rtc_driver, efi_rtc_probe);
-}
-
-static void __exit efi_rtc_exit(void)
-{
- platform_driver_unregister(&efi_rtc_driver);
-}
-
-module_init(efi_rtc_init);
-module_exit(efi_rtc_exit);
+module_platform_driver_probe(efi_rtc_driver, efi_rtc_probe);
MODULE_AUTHOR("dann frazier <dannf@hp.com>");
MODULE_LICENSE("GPL");
--
1.7.2.5
next prev parent reply other threads:[~2013-03-04 8:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 7:57 [PATCH 01/24] rtc: rtc-ab3100: " 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 ` Jingoo Han [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='014101ce18ae$5911fbd0$0b35f370$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome