From: Fabio Porcedda <fabio.porcedda@gmail.com>
To: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-ide@vger.kernel.org,
linux-input@vger.kernel.org, linux-fbdev@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@redhat.com>,
Josh Wu <josh.wu@atmel.com>
Subject: [PATCH v2 1/8] drivers: media: use module_platform_driver_probe()
Date: Thu, 14 Mar 2013 18:09:31 +0100 [thread overview]
Message-ID: <1363280978-24051-2-git-send-email-fabio.porcedda@gmail.com> (raw)
In-Reply-To: <1363280978-24051-1-git-send-email-fabio.porcedda@gmail.com>
This patch converts the drivers to use the
module_platform_driver_probe() macro which makes the code smaller and
a bit simpler.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Josh Wu <josh.wu@atmel.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: linux-media@vger.kernel.org
---
drivers/media/platform/soc_camera/atmel-isi.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c
index 82dbf99..12ba31d 100644
--- a/drivers/media/platform/soc_camera/atmel-isi.c
+++ b/drivers/media/platform/soc_camera/atmel-isi.c
@@ -1081,17 +1081,7 @@ static struct platform_driver atmel_isi_driver = {
},
};
-static int __init atmel_isi_init_module(void)
-{
- return platform_driver_probe(&atmel_isi_driver, &atmel_isi_probe);
-}
-
-static void __exit atmel_isi_exit(void)
-{
- platform_driver_unregister(&atmel_isi_driver);
-}
-module_init(atmel_isi_init_module);
-module_exit(atmel_isi_exit);
+module_platform_driver_probe(atmel_isi_driver, atmel_isi_probe);
MODULE_AUTHOR("Josh Wu <josh.wu@atmel.com>");
MODULE_DESCRIPTION("The V4L2 driver for Atmel Linux");
--
1.8.1.5
next prev parent reply other threads:[~2013-03-14 17:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 17:09 [PATCH v2 0/8] Use module_platform_driver_probe() part 2 Fabio Porcedda
2013-03-14 17:09 ` Fabio Porcedda [this message]
2013-03-14 17:14 ` [PATCH v2 1/8] drivers: media: use module_platform_driver_probe() Guennadi Liakhovetski
2013-03-14 17:09 ` [PATCH v2 2/8] drivers: ata: " Fabio Porcedda
2013-03-18 3:13 ` Jingoo Han
2013-03-14 17:09 ` [PATCH v2 3/8] drivers: char: " Fabio Porcedda
2013-03-21 9:55 ` Herbert Xu
2013-03-21 10:15 ` Fabio Porcedda
2013-03-21 10:19 ` Herbert Xu
2013-03-14 17:09 ` [PATCH v2 4/8] drivers: input: " Fabio Porcedda
2013-03-14 17:30 ` Dmitry Torokhov
2013-03-14 17:51 ` Fabio Porcedda
2013-03-14 17:09 ` [PATCH v2 5/8] drivers: memory: " Fabio Porcedda
2013-03-14 17:09 ` [PATCH v2 6/8] drivers: mfd: " Fabio Porcedda
2013-03-18 3:10 ` Jingoo Han
2013-03-14 17:09 ` [PATCH v2 7/8] drivers: video: " Fabio Porcedda
2013-03-14 17:09 ` [PATCH v2 8/8] drivers: misc: " Fabio Porcedda
2013-03-15 18:13 ` Greg Kroah-Hartman
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=1363280978-24051-2-git-send-email-fabio.porcedda@gmail.com \
--to=fabio.porcedda@gmail.com \
--cc=g.liakhovetski@gmx.de \
--cc=gregkh@linuxfoundation.org \
--cc=hans.verkuil@cisco.com \
--cc=josh.wu@atmel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.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;
as well as URLs for NNTP newsgroup(s).