From: Sascha Hauer <s.hauer@pengutronix.de>
To: <linux-arm-kernel@lists.infradead.org>
Cc: "HACHIMI Samir" <shachimi@adeneo-embedded.com>,
shawn.guo@linaro.org, thierry.reding@avionic-design.de,
linux-kernel@vger.kernel.org,
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>,
kernel@pengutronix.de, "Sascha Hauer" <s.hauer@pengutronix.de>
Subject: [PATCH 4/7] pwm: i.MX: Use module_platform_driver
Date: Mon, 10 Sep 2012 10:59:34 +0200 [thread overview]
Message-ID: <1347267577-3296-5-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1347267577-3296-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
---
drivers/pwm/pwm-imx.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index 13d4d22..a1e799e 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -271,17 +271,7 @@ static struct platform_driver imx_pwm_driver = {
.remove = __devexit_p(imx_pwm_remove),
};
-static int __init imx_pwm_init(void)
-{
- return platform_driver_register(&imx_pwm_driver);
-}
-arch_initcall(imx_pwm_init);
-
-static void __exit imx_pwm_exit(void)
-{
- platform_driver_unregister(&imx_pwm_driver);
-}
-module_exit(imx_pwm_exit);
+module_platform_driver(imx_pwm_driver);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
--
1.7.10.4
next prev parent reply other threads:[~2012-09-10 9:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 8:59 [PATCH v4] pwm: i.MX: add devicetree support Sascha Hauer
2012-09-10 8:59 ` [PATCH 1/7] pwm: i.MX: factor out SoC specific functions Sascha Hauer
2012-09-10 8:59 ` [PATCH 2/7] pwm: i.MX: remove unnecessary if in pwm_[en|dis]able Sascha Hauer
2012-09-10 8:59 ` [PATCH 3/7] pwm: i.MX: add functions to enable/disable pwm Sascha Hauer
2012-09-10 8:59 ` Sascha Hauer [this message]
2012-09-10 8:59 ` [PATCH 5/7] pwm: i.MX: add devicetree support Sascha Hauer
2012-09-11 14:40 ` Thierry Reding
2012-09-12 9:04 ` Sascha Hauer
2012-09-18 6:11 ` Thierry Reding
2012-09-18 7:57 ` Sascha Hauer
2012-09-10 8:59 ` [PATCH 6/7] pwm: i.MX: use per clock unconditionally Sascha Hauer
2012-09-10 8:59 ` [PATCH 7/7] pwm: i.MX: fix clock lookup Sascha Hauer
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=1347267577-3296-5-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=benoit.thebaudeau@advansee.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shachimi@adeneo-embedded.com \
--cc=shawn.guo@linaro.org \
--cc=thierry.reding@avionic-design.de \
/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;
as well as URLs for NNTP newsgroup(s).