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 10/24] rtc: rtc-imxdi: use module_platform_driver_probe()
Date: Mon, 04 Mar 2013 17:01:33 +0900 [thread overview]
Message-ID: <014301ce18ae$7c80b930$75822b90$%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-imxdi.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 73cf81c..a5a143e 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -513,18 +513,7 @@ static struct platform_driver dryice_rtc_driver = {
.remove = __exit_p(dryice_rtc_remove),
};
-static int __init dryice_rtc_init(void)
-{
- return platform_driver_probe(&dryice_rtc_driver, dryice_rtc_probe);
-}
-
-static void __exit dryice_rtc_exit(void)
-{
- platform_driver_unregister(&dryice_rtc_driver);
-}
-
-module_init(dryice_rtc_init);
-module_exit(dryice_rtc_exit);
+module_platform_driver_probe(dryice_rtc_driver, dryice_rtc_probe);
MODULE_AUTHOR("Freescale Semiconductor, Inc.");
MODULE_AUTHOR("Baruch Siach <baruch@tkos.co.il>");
--
1.7.2.5
next prev parent reply other threads:[~2013-03-04 8:01 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 ` [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 ` Jingoo Han [this message]
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='014301ce18ae$7c80b930$75822b90$%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