* [RESEND] [PATCH 3.6.0- 3/6] ARM/pxa: use module_platform_driver macro
@ 2012-10-12 7:11 Srinivas KANDAGATLA
2012-10-16 10:59 ` Igor Grinberg
0 siblings, 1 reply; 3+ messages in thread
From: Srinivas KANDAGATLA @ 2012-10-12 7:11 UTC (permalink / raw)
To: linux-arm-kernel
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-pxa/pxa3xx-ulpi.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c
index 7dbe3cc..e329cce 100644
--- a/arch/arm/mach-pxa/pxa3xx-ulpi.c
+++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c
@@ -384,18 +384,7 @@ static struct platform_driver pxa3xx_u2d_ulpi_driver = {
.probe = pxa3xx_u2d_probe,
.remove = pxa3xx_u2d_remove,
};
-
-static int pxa3xx_u2d_ulpi_init(void)
-{
- return platform_driver_register(&pxa3xx_u2d_ulpi_driver);
-}
-module_init(pxa3xx_u2d_ulpi_init);
-
-static void __exit pxa3xx_u2d_ulpi_exit(void)
-{
- platform_driver_unregister(&pxa3xx_u2d_ulpi_driver);
-}
-module_exit(pxa3xx_u2d_ulpi_exit);
+module_platform_driver(pxa3xx_u2d_ulpi_driver);
MODULE_DESCRIPTION("PXA3xx U2D ULPI driver");
MODULE_AUTHOR("Igor Grinberg");
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [RESEND] [PATCH 3.6.0- 3/6] ARM/pxa: use module_platform_driver macro
2012-10-12 7:11 [RESEND] [PATCH 3.6.0- 3/6] ARM/pxa: use module_platform_driver macro Srinivas KANDAGATLA
@ 2012-10-16 10:59 ` Igor Grinberg
2012-10-18 9:12 ` Haojian Zhuang
0 siblings, 1 reply; 3+ messages in thread
From: Igor Grinberg @ 2012-10-16 10:59 UTC (permalink / raw)
To: linux-arm-kernel
On 10/12/12 09:11, Srinivas KANDAGATLA wrote:
> 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>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
> ---
> arch/arm/mach-pxa/pxa3xx-ulpi.c | 13 +------------
> 1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c
> index 7dbe3cc..e329cce 100644
> --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c
> +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c
> @@ -384,18 +384,7 @@ static struct platform_driver pxa3xx_u2d_ulpi_driver = {
> .probe = pxa3xx_u2d_probe,
> .remove = pxa3xx_u2d_remove,
> };
> -
> -static int pxa3xx_u2d_ulpi_init(void)
> -{
> - return platform_driver_register(&pxa3xx_u2d_ulpi_driver);
> -}
> -module_init(pxa3xx_u2d_ulpi_init);
> -
> -static void __exit pxa3xx_u2d_ulpi_exit(void)
> -{
> - platform_driver_unregister(&pxa3xx_u2d_ulpi_driver);
> -}
> -module_exit(pxa3xx_u2d_ulpi_exit);
> +module_platform_driver(pxa3xx_u2d_ulpi_driver);
>
> MODULE_DESCRIPTION("PXA3xx U2D ULPI driver");
> MODULE_AUTHOR("Igor Grinberg");
--
Regards,
Igor.
^ permalink raw reply [flat|nested] 3+ messages in thread* [RESEND] [PATCH 3.6.0- 3/6] ARM/pxa: use module_platform_driver macro
2012-10-16 10:59 ` Igor Grinberg
@ 2012-10-18 9:12 ` Haojian Zhuang
0 siblings, 0 replies; 3+ messages in thread
From: Haojian Zhuang @ 2012-10-18 9:12 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 16, 2012 at 6:59 PM, Igor Grinberg <grinberg@compulab.co.il> wrote:
> On 10/12/12 09:11, Srinivas KANDAGATLA wrote:
>> 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>
>
> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
>
Applied
Thanks
Haojian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-18 9:12 UTC | newest]
Thread overview: 3+ 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- 3/6] ARM/pxa: use module_platform_driver macro Srinivas KANDAGATLA
2012-10-16 10:59 ` Igor Grinberg
2012-10-18 9:12 ` Haojian Zhuang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox