From: jg1.han@samsung.com (Jingoo Han)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 6/8] drivers: mfd: use module_platform_driver_probe()
Date: Mon, 18 Mar 2013 12:10:10 +0900 [thread overview]
Message-ID: <018b01ce2386$19ba9090$4d2fb1b0$%han@samsung.com> (raw)
In-Reply-To: <1363280978-24051-7-git-send-email-fabio.porcedda@gmail.com>
On Friday, March 15, 2013 2:10 AM, Fabio Porcedda wrote:
>
> 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: Linus Walleij <linus.walleij@linaro.org>
> Cc: Samuel Ortiz <sameo@linux.intel.com>
> Cc: linux-arm-kernel at lists.infradead.org
> ---
> drivers/mfd/davinci_voicecodec.c | 12 +-----------
> drivers/mfd/htc-pasic3.c | 13 +------------
> 2 files changed, 2 insertions(+), 23 deletions(-)
I already submitted the patch 2 weeks ago.
https://patchwork.kernel.org/patch/2217301/
https://patchwork.kernel.org/patch/2217291/
Best regards,
Jingoo Han
>
> diff --git a/drivers/mfd/davinci_voicecodec.c b/drivers/mfd/davinci_voicecodec.c
> index c0bcc87..c60ab0c 100644
> --- a/drivers/mfd/davinci_voicecodec.c
> +++ b/drivers/mfd/davinci_voicecodec.c
> @@ -177,17 +177,7 @@ static struct platform_driver davinci_vc_driver = {
> .remove = davinci_vc_remove,
> };
>
> -static int __init davinci_vc_init(void)
> -{
> - return platform_driver_probe(&davinci_vc_driver, davinci_vc_probe);
> -}
> -module_init(davinci_vc_init);
> -
> -static void __exit davinci_vc_exit(void)
> -{
> - platform_driver_unregister(&davinci_vc_driver);
> -}
> -module_exit(davinci_vc_exit);
> +module_platform_driver_probe(davinci_vc_driver, davinci_vc_probe);
>
> MODULE_AUTHOR("Miguel Aguilar");
> MODULE_DESCRIPTION("Texas Instruments DaVinci Voice Codec Core Interface");
> diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c
> index 9e5453d..0285fce 100644
> --- a/drivers/mfd/htc-pasic3.c
> +++ b/drivers/mfd/htc-pasic3.c
> @@ -208,18 +208,7 @@ static struct platform_driver pasic3_driver = {
> .remove = pasic3_remove,
> };
>
> -static int __init pasic3_base_init(void)
> -{
> - return platform_driver_probe(&pasic3_driver, pasic3_probe);
> -}
> -
> -static void __exit pasic3_base_exit(void)
> -{
> - platform_driver_unregister(&pasic3_driver);
> -}
> -
> -module_init(pasic3_base_init);
> -module_exit(pasic3_base_exit);
> +module_platform_driver_probe(pasic3_driver, pasic3_probe);
>
> MODULE_AUTHOR("Philipp Zabel <philipp.zabel@gmail.com>");
> MODULE_DESCRIPTION("Core driver for HTC PASIC3");
> --
> 1.8.1.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-03-18 3:10 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 ` [PATCH v2 1/8] drivers: media: use module_platform_driver_probe() Fabio Porcedda
2013-03-14 17:14 ` 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 [this message]
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='018b01ce2386$19ba9090$4d2fb1b0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).