linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND] [PATCH 3.6.0- 1/6] ARM/omap1: use module_platform_driver macro
@ 2012-10-12  7:11 Srinivas KANDAGATLA
  2012-11-07  1:21 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas KANDAGATLA @ 2012-10-12  7:11 UTC (permalink / raw)
  To: tony, paul, rnayak
  Cc: srinivas.kandagatla, Hiroshi.DOYU, linux-omap, tarun.kanti, thara,
	grinberg, eric.y.miao, linux-arm-kernel, juha.yrjola, linux,
	haojian.zhuang, dsaxena, mpm, herbert

From: Srinivas Kandagatla <srinivas.kandagatla@st.com>

This patch removes some code duplication by using
module_platform_driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
---
 arch/arm/mach-omap1/mailbox.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c
index e962926..45c8719 100644
--- a/arch/arm/mach-omap1/mailbox.c
+++ b/arch/arm/mach-omap1/mailbox.c
@@ -179,19 +179,7 @@ static struct platform_driver omap1_mbox_driver = {
 		.name	= "omap-mailbox",
 	},
 };
-
-static int __init omap1_mbox_init(void)
-{
-	return platform_driver_register(&omap1_mbox_driver);
-}
-
-static void __exit omap1_mbox_exit(void)
-{
-	platform_driver_unregister(&omap1_mbox_driver);
-}
-
-module_init(omap1_mbox_init);
-module_exit(omap1_mbox_exit);
+module_platform_driver(omap1_mbox_driver);
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("omap mailbox: omap1 architecture specific functions");
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RESEND] [PATCH 3.6.0- 1/6] ARM/omap1: use module_platform_driver macro
  2012-10-12  7:11 [RESEND] [PATCH 3.6.0- 1/6] ARM/omap1: use module_platform_driver macro Srinivas KANDAGATLA
@ 2012-11-07  1:21 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2012-11-07  1:21 UTC (permalink / raw)
  To: Srinivas KANDAGATLA
  Cc: paul, rnayak, Hiroshi.DOYU, linux-omap, tarun.kanti, thara,
	grinberg, eric.y.miao, linux-arm-kernel, juha.yrjola, linux,
	haojian.zhuang, dsaxena, mpm, herbert

* Srinivas KANDAGATLA <srinivas.kandagatla@st.com> [121012 00:14]:
> From: Srinivas Kandagatla <srinivas.kandagatla@st.com>
> 
> This patch removes some code duplication by using
> module_platform_driver.

Sorry for delay on these, we're moving the mailbox code to
live under drivers, so these may need to wait a little bit.

Regards,

Tony
 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
> ---
>  arch/arm/mach-omap1/mailbox.c |   14 +-------------
>  1 files changed, 1 insertions(+), 13 deletions(-)
> 
> diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c
> index e962926..45c8719 100644
> --- a/arch/arm/mach-omap1/mailbox.c
> +++ b/arch/arm/mach-omap1/mailbox.c
> @@ -179,19 +179,7 @@ static struct platform_driver omap1_mbox_driver = {
>  		.name	= "omap-mailbox",
>  	},
>  };
> -
> -static int __init omap1_mbox_init(void)
> -{
> -	return platform_driver_register(&omap1_mbox_driver);
> -}
> -
> -static void __exit omap1_mbox_exit(void)
> -{
> -	platform_driver_unregister(&omap1_mbox_driver);
> -}
> -
> -module_init(omap1_mbox_init);
> -module_exit(omap1_mbox_exit);
> +module_platform_driver(omap1_mbox_driver);
>  
>  MODULE_LICENSE("GPL v2");
>  MODULE_DESCRIPTION("omap mailbox: omap1 architecture specific functions");
> -- 
> 1.7.0.4
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-07  1:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12  7:11 [RESEND] [PATCH 3.6.0- 1/6] ARM/omap1: use module_platform_driver macro Srinivas KANDAGATLA
2012-11-07  1:21 ` Tony Lindgren

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).