mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Alessandro Zummo <a.zummo@towertech.it>,
	Tony Lindgren <tony@atomide.com>
Cc: <rtc-linux@googlegroups.com>, <linux-kernel@vger.kernel.org>,
	<linux-omap@vger.kernel.org>,
	Christoph Fritz <chf.fritz@googlemail.com>,
	Grygorii Strashko <grygorii.strashko@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@iki.fi>
Subject: [PATCH v2 2/2] RTC: rtc-twl: Cleanup with module_platform_driver() conversion
Date: Tue, 16 Apr 2013 10:30:13 +0200	[thread overview]
Message-ID: <1366101013-21183-2-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1366101013-21183-1-git-send-email-peter.ujfalusi@ti.com>

Use module_platform_driver() to register the platform driver.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/rtc/rtc-twl.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c
index c385e9b..22b2fd6 100644
--- a/drivers/rtc/rtc-twl.c
+++ b/drivers/rtc/rtc-twl.c
@@ -618,17 +618,7 @@ static struct platform_driver twl4030rtc_driver = {
 	},
 };
 
-static int __init twl_rtc_init(void)
-{
-	return platform_driver_register(&twl4030rtc_driver);
-}
-module_init(twl_rtc_init);
-
-static void __exit twl_rtc_exit(void)
-{
-	platform_driver_unregister(&twl4030rtc_driver);
-}
-module_exit(twl_rtc_exit);
+module_platform_driver(twl4030rtc_driver);
 
 MODULE_AUTHOR("Texas Instruments, MontaVista Software");
 MODULE_LICENSE("GPL");
-- 
1.8.1.5


  reply	other threads:[~2013-04-16  8:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-16  8:30 [PATCH v2 1/2] RTC: rtc-twl: Fix rtc_reg_map initialization Peter Ujfalusi
2013-04-16  8:30 ` Peter Ujfalusi [this message]
2013-06-05 18:05   ` [PATCH v2 2/2] RTC: rtc-twl: Cleanup with module_platform_driver() conversion Kevin Hilman
2013-06-05 11:49 ` [PATCH v2 1/2] RTC: rtc-twl: Fix rtc_reg_map initialization Grygorii Strashko
2013-06-05 18:03 ` Kevin Hilman

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=1366101013-21183-2-git-send-email-peter.ujfalusi@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=a.zummo@towertech.it \
    --cc=chf.fritz@googlemail.com \
    --cc=grygorii.strashko@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=tomi.valkeinen@iki.fi \
    --cc=tony@atomide.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

all inboxes | Powered by JetHome®