* [PATCH 1/3] video: convert mbxfb to use module_platform_driver()
@ 2011-12-09 1:57 Axel Lin
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Axel Lin @ 2011-12-09 1:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Mike Rapoport, Florian Tobias Schandinat, linux-fbdev
This patch converts mbxfb to use the module_platform_driver() macro
which makes the code smaller and a bit simpler.
Cc: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/video/mbx/mbxfb.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index 6ce3416..55bf619 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -1053,18 +1053,7 @@ static struct platform_driver mbxfb_driver = {
},
};
-int __devinit mbxfb_init(void)
-{
- return platform_driver_register(&mbxfb_driver);
-}
-
-static void __devexit mbxfb_exit(void)
-{
- platform_driver_unregister(&mbxfb_driver);
-}
-
-module_init(mbxfb_init);
-module_exit(mbxfb_exit);
+module_platform_driver(mbxfb_driver);
MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device");
MODULE_AUTHOR("Mike Rapoport, Compulab");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] video: omap: convert drivers/video/omap/* to use
2011-12-09 1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
@ 2011-12-09 1:59 ` Axel Lin
2011-12-09 8:24 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Marek Vasut
2011-12-12 10:46 ` Tomi Valkeinen
2011-12-09 2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* " Axel Lin
2011-12-19 23:14 ` [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Florian Tobias Schandinat
2 siblings, 2 replies; 8+ messages in thread
From: Axel Lin @ 2011-12-09 1:59 UTC (permalink / raw)
To: linux-kernel
Cc: Jonathan McDowell, Cory Maccarrone, Laurent Gonzalez, Marek Vasut,
Tomi Valkeinen, Florian Tobias Schandinat, linux-fbdev,
linux-omap
This patch converts the drivers in drivers/video/omap/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Jonathan McDowell <noodles@earth.li>
Cc: Cory Maccarrone <darkstar6262@gmail.com>
Cc: Laurent Gonzalez <palmte.linux@free.fr>
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/video/omap/lcd_ams_delta.c | 13 +------------
drivers/video/omap/lcd_h3.c | 14 +-------------
drivers/video/omap/lcd_htcherald.c | 14 +-------------
drivers/video/omap/lcd_inn1510.c | 14 +-------------
drivers/video/omap/lcd_inn1610.c | 14 +-------------
drivers/video/omap/lcd_osk.c | 14 +-------------
drivers/video/omap/lcd_palmte.c | 14 +-------------
drivers/video/omap/lcd_palmtt.c | 13 +------------
drivers/video/omap/lcd_palmz71.c | 13 +------------
9 files changed, 9 insertions(+), 114 deletions(-)
diff --git a/drivers/video/omap/lcd_ams_delta.c b/drivers/video/omap/lcd_ams_delta.c
index eb50a95..0fdd6f6 100644
--- a/drivers/video/omap/lcd_ams_delta.c
+++ b/drivers/video/omap/lcd_ams_delta.c
@@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver = {
},
};
-static int __init ams_delta_panel_drv_init(void)
-{
- return platform_driver_register(&ams_delta_panel_driver);
-}
-
-static void __exit ams_delta_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&ams_delta_panel_driver);
-}
-
-module_init(ams_delta_panel_drv_init);
-module_exit(ams_delta_panel_drv_cleanup);
+module_platform_driver(ams_delta_panel_driver);
diff --git a/drivers/video/omap/lcd_h3.c b/drivers/video/omap/lcd_h3.c
index baec34e..49bdeca 100644
--- a/drivers/video/omap/lcd_h3.c
+++ b/drivers/video/omap/lcd_h3.c
@@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = {
},
};
-static int __init h3_panel_drv_init(void)
-{
- return platform_driver_register(&h3_panel_driver);
-}
-
-static void __exit h3_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&h3_panel_driver);
-}
-
-module_init(h3_panel_drv_init);
-module_exit(h3_panel_drv_cleanup);
-
+module_platform_driver(h3_panel_driver);
diff --git a/drivers/video/omap/lcd_htcherald.c b/drivers/video/omap/lcd_htcherald.c
index b1a022f..20f4778 100644
--- a/drivers/video/omap/lcd_htcherald.c
+++ b/drivers/video/omap/lcd_htcherald.c
@@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver = {
},
};
-static int __init htcherald_panel_drv_init(void)
-{
- return platform_driver_register(&htcherald_panel_driver);
-}
-
-static void __exit htcherald_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&htcherald_panel_driver);
-}
-
-module_init(htcherald_panel_drv_init);
-module_exit(htcherald_panel_drv_cleanup);
-
+module_platform_driver(htcherald_panel_driver);
diff --git a/drivers/video/omap/lcd_inn1510.c b/drivers/video/omap/lcd_inn1510.c
index d129946..b38b1dd 100644
--- a/drivers/video/omap/lcd_inn1510.c
+++ b/drivers/video/omap/lcd_inn1510.c
@@ -109,16 +109,4 @@ static struct platform_driver innovator1510_panel_driver = {
},
};
-static int __init innovator1510_panel_drv_init(void)
-{
- return platform_driver_register(&innovator1510_panel_driver);
-}
-
-static void __exit innovator1510_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&innovator1510_panel_driver);
-}
-
-module_init(innovator1510_panel_drv_init);
-module_exit(innovator1510_panel_drv_cleanup);
-
+module_platform_driver(innovator1510_panel_driver);
diff --git a/drivers/video/omap/lcd_inn1610.c b/drivers/video/omap/lcd_inn1610.c
index a95756b..7e8bd8e 100644
--- a/drivers/video/omap/lcd_inn1610.c
+++ b/drivers/video/omap/lcd_inn1610.c
@@ -133,16 +133,4 @@ static struct platform_driver innovator1610_panel_driver = {
},
};
-static int __init innovator1610_panel_drv_init(void)
-{
- return platform_driver_register(&innovator1610_panel_driver);
-}
-
-static void __exit innovator1610_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&innovator1610_panel_driver);
-}
-
-module_init(innovator1610_panel_drv_init);
-module_exit(innovator1610_panel_drv_cleanup);
-
+module_platform_driver(innovator1610_panel_driver);
diff --git a/drivers/video/omap/lcd_osk.c b/drivers/video/omap/lcd_osk.c
index b985997..5914220 100644
--- a/drivers/video/omap/lcd_osk.c
+++ b/drivers/video/omap/lcd_osk.c
@@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = {
},
};
-static int __init osk_panel_drv_init(void)
-{
- return platform_driver_register(&osk_panel_driver);
-}
-
-static void __exit osk_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&osk_panel_driver);
-}
-
-module_init(osk_panel_drv_init);
-module_exit(osk_panel_drv_cleanup);
-
+module_platform_driver(osk_panel_driver);
diff --git a/drivers/video/omap/lcd_palmte.c b/drivers/video/omap/lcd_palmte.c
index d79f436..88c31eb 100644
--- a/drivers/video/omap/lcd_palmte.c
+++ b/drivers/video/omap/lcd_palmte.c
@@ -108,16 +108,4 @@ static struct platform_driver palmte_panel_driver = {
},
};
-static int __init palmte_panel_drv_init(void)
-{
- return platform_driver_register(&palmte_panel_driver);
-}
-
-static void __exit palmte_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&palmte_panel_driver);
-}
-
-module_init(palmte_panel_drv_init);
-module_exit(palmte_panel_drv_cleanup);
-
+module_platform_driver(palmte_panel_driver);
diff --git a/drivers/video/omap/lcd_palmtt.c b/drivers/video/omap/lcd_palmtt.c
index c2e96a7..aaf3c8b 100644
--- a/drivers/video/omap/lcd_palmtt.c
+++ b/drivers/video/omap/lcd_palmtt.c
@@ -113,15 +113,4 @@ static struct platform_driver palmtt_panel_driver = {
},
};
-static int __init palmtt_panel_drv_init(void)
-{
- return platform_driver_register(&palmtt_panel_driver);
-}
-
-static void __exit palmtt_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&palmtt_panel_driver);
-}
-
-module_init(palmtt_panel_drv_init);
-module_exit(palmtt_panel_drv_cleanup);
+module_platform_driver(palmtt_panel_driver);
diff --git a/drivers/video/omap/lcd_palmz71.c b/drivers/video/omap/lcd_palmz71.c
index 1ab4847..3b7d8aa 100644
--- a/drivers/video/omap/lcd_palmz71.c
+++ b/drivers/video/omap/lcd_palmz71.c
@@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = {
},
};
-static int __init palmz71_panel_drv_init(void)
-{
- return platform_driver_register(&palmz71_panel_driver);
-}
-
-static void __exit palmz71_panel_drv_cleanup(void)
-{
- platform_driver_unregister(&palmz71_panel_driver);
-}
-
-module_init(palmz71_panel_drv_init);
-module_exit(palmz71_panel_drv_cleanup);
+module_platform_driver(palmz71_panel_driver);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to use
2011-12-09 1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
@ 2011-12-09 2:01 ` Axel Lin
2011-12-19 23:15 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to Florian Tobias Schandinat
2011-12-19 23:14 ` [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Florian Tobias Schandinat
2 siblings, 1 reply; 8+ messages in thread
From: Axel Lin @ 2011-12-09 2:01 UTC (permalink / raw)
To: linux-kernel; +Cc: Grigory Tolstolytkin, Florian Tobias Schandinat, linux-fbdev
This patch converts the drivers in drivers/video/pnx4008/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/video/pnx4008/pnxrgbfb.c | 13 +------------
drivers/video/pnx4008/sdum.c | 13 +------------
2 files changed, 2 insertions(+), 24 deletions(-)
diff --git a/drivers/video/pnx4008/pnxrgbfb.c b/drivers/video/pnx4008/pnxrgbfb.c
index b2252fe..6d30428 100644
--- a/drivers/video/pnx4008/pnxrgbfb.c
+++ b/drivers/video/pnx4008/pnxrgbfb.c
@@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = {
.remove = rgbfb_remove,
};
-static int __init rgbfb_init(void)
-{
- return platform_driver_register(&rgbfb_driver);
-}
-
-static void __exit rgbfb_exit(void)
-{
- platform_driver_unregister(&rgbfb_driver);
-}
-
-module_init(rgbfb_init);
-module_exit(rgbfb_exit);
+module_platform_driver(rgbfb_driver);
MODULE_LICENSE("GPL");
diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c
index 50e0039..c5c7414 100644
--- a/drivers/video/pnx4008/sdum.c
+++ b/drivers/video/pnx4008/sdum.c
@@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = {
.resume = sdum_resume,
};
-int __init sdum_init(void)
-{
- return platform_driver_register(&sdum_driver);
-}
-
-static void __exit sdum_exit(void)
-{
- platform_driver_unregister(&sdum_driver);
-};
-
-module_init(sdum_init);
-module_exit(sdum_exit);
+module_platform_driver(sdum_driver);
MODULE_LICENSE("GPL");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver()
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
@ 2011-12-09 8:24 ` Marek Vasut
2011-12-09 22:00 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Jonathan McDowell
2011-12-12 10:46 ` Tomi Valkeinen
1 sibling, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2011-12-09 8:24 UTC (permalink / raw)
To: Axel Lin
Cc: linux-kernel, Jonathan McDowell, Cory Maccarrone,
Laurent Gonzalez, Tomi Valkeinen, Florian Tobias Schandinat,
linux-fbdev, linux-omap
> This patch converts the drivers in drivers/video/omap/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: Jonathan McDowell <noodles@earth.li>
> Cc: Cory Maccarrone <darkstar6262@gmail.com>
> Cc: Laurent Gonzalez <palmte.linux@free.fr>
> Cc: Marek Vasut <marek.vasut@gmail.com>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/video/omap/lcd_ams_delta.c | 13 +------------
> drivers/video/omap/lcd_h3.c | 14 +-------------
> drivers/video/omap/lcd_htcherald.c | 14 +-------------
> drivers/video/omap/lcd_inn1510.c | 14 +-------------
> drivers/video/omap/lcd_inn1610.c | 14 +-------------
> drivers/video/omap/lcd_osk.c | 14 +-------------
> drivers/video/omap/lcd_palmte.c | 14 +-------------
> drivers/video/omap/lcd_palmtt.c | 13 +------------
> drivers/video/omap/lcd_palmz71.c | 13 +------------
> 9 files changed, 9 insertions(+), 114 deletions(-)
>
> diff --git a/drivers/video/omap/lcd_ams_delta.c
> b/drivers/video/omap/lcd_ams_delta.c index eb50a95..0fdd6f6 100644
> --- a/drivers/video/omap/lcd_ams_delta.c
> +++ b/drivers/video/omap/lcd_ams_delta.c
> @@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver > { },
> };
>
> -static int __init ams_delta_panel_drv_init(void)
> -{
> - return platform_driver_register(&ams_delta_panel_driver);
> -}
> -
> -static void __exit ams_delta_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&ams_delta_panel_driver);
> -}
> -
> -module_init(ams_delta_panel_drv_init);
> -module_exit(ams_delta_panel_drv_cleanup);
> +module_platform_driver(ams_delta_panel_driver);
> diff --git a/drivers/video/omap/lcd_h3.c b/drivers/video/omap/lcd_h3.c
> index baec34e..49bdeca 100644
> --- a/drivers/video/omap/lcd_h3.c
> +++ b/drivers/video/omap/lcd_h3.c
> @@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = {
> },
> };
>
> -static int __init h3_panel_drv_init(void)
> -{
> - return platform_driver_register(&h3_panel_driver);
> -}
> -
> -static void __exit h3_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&h3_panel_driver);
> -}
> -
> -module_init(h3_panel_drv_init);
> -module_exit(h3_panel_drv_cleanup);
> -
> +module_platform_driver(h3_panel_driver);
> diff --git a/drivers/video/omap/lcd_htcherald.c
> b/drivers/video/omap/lcd_htcherald.c index b1a022f..20f4778 100644
> --- a/drivers/video/omap/lcd_htcherald.c
> +++ b/drivers/video/omap/lcd_htcherald.c
> @@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver > { },
> };
>
> -static int __init htcherald_panel_drv_init(void)
> -{
> - return platform_driver_register(&htcherald_panel_driver);
> -}
> -
> -static void __exit htcherald_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&htcherald_panel_driver);
> -}
> -
> -module_init(htcherald_panel_drv_init);
> -module_exit(htcherald_panel_drv_cleanup);
> -
> +module_platform_driver(htcherald_panel_driver);
> diff --git a/drivers/video/omap/lcd_inn1510.c
> b/drivers/video/omap/lcd_inn1510.c index d129946..b38b1dd 100644
> --- a/drivers/video/omap/lcd_inn1510.c
> +++ b/drivers/video/omap/lcd_inn1510.c
> @@ -109,16 +109,4 @@ static struct platform_driver
> innovator1510_panel_driver = { },
> };
>
> -static int __init innovator1510_panel_drv_init(void)
> -{
> - return platform_driver_register(&innovator1510_panel_driver);
> -}
> -
> -static void __exit innovator1510_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&innovator1510_panel_driver);
> -}
> -
> -module_init(innovator1510_panel_drv_init);
> -module_exit(innovator1510_panel_drv_cleanup);
> -
> +module_platform_driver(innovator1510_panel_driver);
> diff --git a/drivers/video/omap/lcd_inn1610.c
> b/drivers/video/omap/lcd_inn1610.c index a95756b..7e8bd8e 100644
> --- a/drivers/video/omap/lcd_inn1610.c
> +++ b/drivers/video/omap/lcd_inn1610.c
> @@ -133,16 +133,4 @@ static struct platform_driver
> innovator1610_panel_driver = { },
> };
>
> -static int __init innovator1610_panel_drv_init(void)
> -{
> - return platform_driver_register(&innovator1610_panel_driver);
> -}
> -
> -static void __exit innovator1610_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&innovator1610_panel_driver);
> -}
> -
> -module_init(innovator1610_panel_drv_init);
> -module_exit(innovator1610_panel_drv_cleanup);
> -
> +module_platform_driver(innovator1610_panel_driver);
> diff --git a/drivers/video/omap/lcd_osk.c b/drivers/video/omap/lcd_osk.c
> index b985997..5914220 100644
> --- a/drivers/video/omap/lcd_osk.c
> +++ b/drivers/video/omap/lcd_osk.c
> @@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = {
> },
> };
>
> -static int __init osk_panel_drv_init(void)
> -{
> - return platform_driver_register(&osk_panel_driver);
> -}
> -
> -static void __exit osk_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&osk_panel_driver);
> -}
> -
> -module_init(osk_panel_drv_init);
> -module_exit(osk_panel_drv_cleanup);
> -
> +module_platform_driver(osk_panel_driver);
> diff --git a/drivers/video/omap/lcd_palmte.c
> b/drivers/video/omap/lcd_palmte.c index d79f436..88c31eb 100644
> --- a/drivers/video/omap/lcd_palmte.c
> +++ b/drivers/video/omap/lcd_palmte.c
> @@ -108,16 +108,4 @@ static struct platform_driver palmte_panel_driver = {
> },
> };
>
> -static int __init palmte_panel_drv_init(void)
> -{
> - return platform_driver_register(&palmte_panel_driver);
> -}
> -
> -static void __exit palmte_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&palmte_panel_driver);
> -}
> -
> -module_init(palmte_panel_drv_init);
> -module_exit(palmte_panel_drv_cleanup);
> -
> +module_platform_driver(palmte_panel_driver);
> diff --git a/drivers/video/omap/lcd_palmtt.c
> b/drivers/video/omap/lcd_palmtt.c index c2e96a7..aaf3c8b 100644
> --- a/drivers/video/omap/lcd_palmtt.c
> +++ b/drivers/video/omap/lcd_palmtt.c
> @@ -113,15 +113,4 @@ static struct platform_driver palmtt_panel_driver = {
> },
> };
>
> -static int __init palmtt_panel_drv_init(void)
> -{
> - return platform_driver_register(&palmtt_panel_driver);
> -}
> -
> -static void __exit palmtt_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&palmtt_panel_driver);
> -}
> -
> -module_init(palmtt_panel_drv_init);
> -module_exit(palmtt_panel_drv_cleanup);
> +module_platform_driver(palmtt_panel_driver);
> diff --git a/drivers/video/omap/lcd_palmz71.c
> b/drivers/video/omap/lcd_palmz71.c index 1ab4847..3b7d8aa 100644
> --- a/drivers/video/omap/lcd_palmz71.c
> +++ b/drivers/video/omap/lcd_palmz71.c
> @@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = {
> },
> };
>
> -static int __init palmz71_panel_drv_init(void)
> -{
> - return platform_driver_register(&palmz71_panel_driver);
> -}
> -
> -static void __exit palmz71_panel_drv_cleanup(void)
> -{
> - platform_driver_unregister(&palmz71_panel_driver);
> -}
> -
> -module_init(palmz71_panel_drv_init);
> -module_exit(palmz71_panel_drv_cleanup);
> +module_platform_driver(palmz71_panel_driver);
PalmTT and PalmZ71, please add my
Acked-by: Marek Vasut <marek.vasut@gmail.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] video: omap: convert drivers/video/omap/* to use
2011-12-09 8:24 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Marek Vasut
@ 2011-12-09 22:00 ` Jonathan McDowell
0 siblings, 0 replies; 8+ messages in thread
From: Jonathan McDowell @ 2011-12-09 22:00 UTC (permalink / raw)
To: Marek Vasut
Cc: Axel Lin, linux-kernel, Cory Maccarrone, Laurent Gonzalez,
Tomi Valkeinen, Florian Tobias Schandinat, linux-fbdev,
linux-omap
On Fri, Dec 09, 2011 at 09:24:29AM +0100, Marek Vasut wrote:
> > This patch converts the drivers in drivers/video/omap/* to use the
> > module_platform_driver() macro which makes the code smaller and a bit
> > simpler.
> >
> > Cc: Jonathan McDowell <noodles@earth.li>
> > Cc: Cory Maccarrone <darkstar6262@gmail.com>
> > Cc: Laurent Gonzalez <palmte.linux@free.fr>
> > Cc: Marek Vasut <marek.vasut@gmail.com>
> > Signed-off-by: Axel Lin <axel.lin@gmail.com>
> > ---
> > drivers/video/omap/lcd_ams_delta.c | 13 +------------
> > drivers/video/omap/lcd_h3.c | 14 +-------------
> > drivers/video/omap/lcd_htcherald.c | 14 +-------------
> > drivers/video/omap/lcd_inn1510.c | 14 +-------------
> > drivers/video/omap/lcd_inn1610.c | 14 +-------------
> > drivers/video/omap/lcd_osk.c | 14 +-------------
> > drivers/video/omap/lcd_palmte.c | 14 +-------------
> > drivers/video/omap/lcd_palmtt.c | 13 +------------
> > drivers/video/omap/lcd_palmz71.c | 13 +------------
> > 9 files changed, 9 insertions(+), 114 deletions(-)
> >
> > diff --git a/drivers/video/omap/lcd_ams_delta.c
> > b/drivers/video/omap/lcd_ams_delta.c index eb50a95..0fdd6f6 100644
> > --- a/drivers/video/omap/lcd_ams_delta.c
> > +++ b/drivers/video/omap/lcd_ams_delta.c
> > @@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver > > { },
> > };
> >
> > -static int __init ams_delta_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&ams_delta_panel_driver);
> > -}
> > -
> > -static void __exit ams_delta_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&ams_delta_panel_driver);
> > -}
> > -
> > -module_init(ams_delta_panel_drv_init);
> > -module_exit(ams_delta_panel_drv_cleanup);
> > +module_platform_driver(ams_delta_panel_driver);
> > diff --git a/drivers/video/omap/lcd_h3.c b/drivers/video/omap/lcd_h3.c
> > index baec34e..49bdeca 100644
> > --- a/drivers/video/omap/lcd_h3.c
> > +++ b/drivers/video/omap/lcd_h3.c
> > @@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = {
> > },
> > };
> >
> > -static int __init h3_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&h3_panel_driver);
> > -}
> > -
> > -static void __exit h3_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&h3_panel_driver);
> > -}
> > -
> > -module_init(h3_panel_drv_init);
> > -module_exit(h3_panel_drv_cleanup);
> > -
> > +module_platform_driver(h3_panel_driver);
> > diff --git a/drivers/video/omap/lcd_htcherald.c
> > b/drivers/video/omap/lcd_htcherald.c index b1a022f..20f4778 100644
> > --- a/drivers/video/omap/lcd_htcherald.c
> > +++ b/drivers/video/omap/lcd_htcherald.c
> > @@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver > > { },
> > };
> >
> > -static int __init htcherald_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&htcherald_panel_driver);
> > -}
> > -
> > -static void __exit htcherald_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&htcherald_panel_driver);
> > -}
> > -
> > -module_init(htcherald_panel_drv_init);
> > -module_exit(htcherald_panel_drv_cleanup);
> > -
> > +module_platform_driver(htcherald_panel_driver);
> > diff --git a/drivers/video/omap/lcd_inn1510.c
> > b/drivers/video/omap/lcd_inn1510.c index d129946..b38b1dd 100644
> > --- a/drivers/video/omap/lcd_inn1510.c
> > +++ b/drivers/video/omap/lcd_inn1510.c
> > @@ -109,16 +109,4 @@ static struct platform_driver
> > innovator1510_panel_driver = { },
> > };
> >
> > -static int __init innovator1510_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&innovator1510_panel_driver);
> > -}
> > -
> > -static void __exit innovator1510_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&innovator1510_panel_driver);
> > -}
> > -
> > -module_init(innovator1510_panel_drv_init);
> > -module_exit(innovator1510_panel_drv_cleanup);
> > -
> > +module_platform_driver(innovator1510_panel_driver);
> > diff --git a/drivers/video/omap/lcd_inn1610.c
> > b/drivers/video/omap/lcd_inn1610.c index a95756b..7e8bd8e 100644
> > --- a/drivers/video/omap/lcd_inn1610.c
> > +++ b/drivers/video/omap/lcd_inn1610.c
> > @@ -133,16 +133,4 @@ static struct platform_driver
> > innovator1610_panel_driver = { },
> > };
> >
> > -static int __init innovator1610_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&innovator1610_panel_driver);
> > -}
> > -
> > -static void __exit innovator1610_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&innovator1610_panel_driver);
> > -}
> > -
> > -module_init(innovator1610_panel_drv_init);
> > -module_exit(innovator1610_panel_drv_cleanup);
> > -
> > +module_platform_driver(innovator1610_panel_driver);
> > diff --git a/drivers/video/omap/lcd_osk.c b/drivers/video/omap/lcd_osk.c
> > index b985997..5914220 100644
> > --- a/drivers/video/omap/lcd_osk.c
> > +++ b/drivers/video/omap/lcd_osk.c
> > @@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = {
> > },
> > };
> >
> > -static int __init osk_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&osk_panel_driver);
> > -}
> > -
> > -static void __exit osk_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&osk_panel_driver);
> > -}
> > -
> > -module_init(osk_panel_drv_init);
> > -module_exit(osk_panel_drv_cleanup);
> > -
> > +module_platform_driver(osk_panel_driver);
> > diff --git a/drivers/video/omap/lcd_palmte.c
> > b/drivers/video/omap/lcd_palmte.c index d79f436..88c31eb 100644
> > --- a/drivers/video/omap/lcd_palmte.c
> > +++ b/drivers/video/omap/lcd_palmte.c
> > @@ -108,16 +108,4 @@ static struct platform_driver palmte_panel_driver = {
> > },
> > };
> >
> > -static int __init palmte_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&palmte_panel_driver);
> > -}
> > -
> > -static void __exit palmte_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&palmte_panel_driver);
> > -}
> > -
> > -module_init(palmte_panel_drv_init);
> > -module_exit(palmte_panel_drv_cleanup);
> > -
> > +module_platform_driver(palmte_panel_driver);
> > diff --git a/drivers/video/omap/lcd_palmtt.c
> > b/drivers/video/omap/lcd_palmtt.c index c2e96a7..aaf3c8b 100644
> > --- a/drivers/video/omap/lcd_palmtt.c
> > +++ b/drivers/video/omap/lcd_palmtt.c
> > @@ -113,15 +113,4 @@ static struct platform_driver palmtt_panel_driver = {
> > },
> > };
> >
> > -static int __init palmtt_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&palmtt_panel_driver);
> > -}
> > -
> > -static void __exit palmtt_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&palmtt_panel_driver);
> > -}
> > -
> > -module_init(palmtt_panel_drv_init);
> > -module_exit(palmtt_panel_drv_cleanup);
> > +module_platform_driver(palmtt_panel_driver);
> > diff --git a/drivers/video/omap/lcd_palmz71.c
> > b/drivers/video/omap/lcd_palmz71.c index 1ab4847..3b7d8aa 100644
> > --- a/drivers/video/omap/lcd_palmz71.c
> > +++ b/drivers/video/omap/lcd_palmz71.c
> > @@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = {
> > },
> > };
> >
> > -static int __init palmz71_panel_drv_init(void)
> > -{
> > - return platform_driver_register(&palmz71_panel_driver);
> > -}
> > -
> > -static void __exit palmz71_panel_drv_cleanup(void)
> > -{
> > - platform_driver_unregister(&palmz71_panel_driver);
> > -}
> > -
> > -module_init(palmz71_panel_drv_init);
> > -module_exit(palmz71_panel_drv_cleanup);
> > +module_platform_driver(palmz71_panel_driver);
>
> PalmTT and PalmZ71, please add my
> Acked-by: Marek Vasut <marek.vasut@gmail.com>
For ams-delta,
Acked-By: Jonathan McDowell <noodles@earth.li>
J.
--
xmpp:noodles@earth.li
Time is an illusion. Lunchtime doubly so.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] video: omap: convert drivers/video/omap/* to use
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
2011-12-09 8:24 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Marek Vasut
@ 2011-12-12 10:46 ` Tomi Valkeinen
1 sibling, 0 replies; 8+ messages in thread
From: Tomi Valkeinen @ 2011-12-12 10:46 UTC (permalink / raw)
To: Axel Lin
Cc: linux-kernel, Jonathan McDowell, Cory Maccarrone,
Laurent Gonzalez, Marek Vasut, Florian Tobias Schandinat,
linux-fbdev, linux-omap
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
On Fri, 2011-12-09 at 09:59 +0800, Axel Lin wrote:
> This patch converts the drivers in drivers/video/omap/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: Jonathan McDowell <noodles@earth.li>
> Cc: Cory Maccarrone <darkstar6262@gmail.com>
> Cc: Laurent Gonzalez <palmte.linux@free.fr>
> Cc: Marek Vasut <marek.vasut@gmail.com>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Thanks, applied to DSS tree.
Tomi
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] video: convert mbxfb to use module_platform_driver()
2011-12-09 1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
2011-12-09 2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* " Axel Lin
@ 2011-12-19 23:14 ` Florian Tobias Schandinat
2 siblings, 0 replies; 8+ messages in thread
From: Florian Tobias Schandinat @ 2011-12-19 23:14 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Mike Rapoport, linux-fbdev
On 12/09/2011 01:57 AM, Axel Lin wrote:
> This patch converts mbxfb to use the module_platform_driver() macro
> which makes the code smaller and a bit simpler.
>
> Cc: Mike Rapoport <mike@compulab.co.il>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Applied.
Thanks,
Florian Tobias Schandinat
> ---
> drivers/video/mbx/mbxfb.c | 13 +------------
> 1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
> index 6ce3416..55bf619 100644
> --- a/drivers/video/mbx/mbxfb.c
> +++ b/drivers/video/mbx/mbxfb.c
> @@ -1053,18 +1053,7 @@ static struct platform_driver mbxfb_driver = {
> },
> };
>
> -int __devinit mbxfb_init(void)
> -{
> - return platform_driver_register(&mbxfb_driver);
> -}
> -
> -static void __devexit mbxfb_exit(void)
> -{
> - platform_driver_unregister(&mbxfb_driver);
> -}
> -
> -module_init(mbxfb_init);
> -module_exit(mbxfb_exit);
> +module_platform_driver(mbxfb_driver);
>
> MODULE_DESCRIPTION("loadable framebuffer driver for Marathon device");
> MODULE_AUTHOR("Mike Rapoport, Compulab");
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to
2011-12-09 2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* " Axel Lin
@ 2011-12-19 23:15 ` Florian Tobias Schandinat
0 siblings, 0 replies; 8+ messages in thread
From: Florian Tobias Schandinat @ 2011-12-19 23:15 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Grigory Tolstolytkin, linux-fbdev
On 12/09/2011 02:01 AM, Axel Lin wrote:
> This patch converts the drivers in drivers/video/pnx4008/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Applied.
Thanks,
Florian Tobias Schandinat
> ---
> drivers/video/pnx4008/pnxrgbfb.c | 13 +------------
> drivers/video/pnx4008/sdum.c | 13 +------------
> 2 files changed, 2 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/video/pnx4008/pnxrgbfb.c b/drivers/video/pnx4008/pnxrgbfb.c
> index b2252fe..6d30428 100644
> --- a/drivers/video/pnx4008/pnxrgbfb.c
> +++ b/drivers/video/pnx4008/pnxrgbfb.c
> @@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = {
> .remove = rgbfb_remove,
> };
>
> -static int __init rgbfb_init(void)
> -{
> - return platform_driver_register(&rgbfb_driver);
> -}
> -
> -static void __exit rgbfb_exit(void)
> -{
> - platform_driver_unregister(&rgbfb_driver);
> -}
> -
> -module_init(rgbfb_init);
> -module_exit(rgbfb_exit);
> +module_platform_driver(rgbfb_driver);
>
> MODULE_LICENSE("GPL");
> diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c
> index 50e0039..c5c7414 100644
> --- a/drivers/video/pnx4008/sdum.c
> +++ b/drivers/video/pnx4008/sdum.c
> @@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = {
> .resume = sdum_resume,
> };
>
> -int __init sdum_init(void)
> -{
> - return platform_driver_register(&sdum_driver);
> -}
> -
> -static void __exit sdum_exit(void)
> -{
> - platform_driver_unregister(&sdum_driver);
> -};
> -
> -module_init(sdum_init);
> -module_exit(sdum_exit);
> +module_platform_driver(sdum_driver);
>
> MODULE_LICENSE("GPL");
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-12-19 23:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
2011-12-09 1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
2011-12-09 8:24 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Marek Vasut
2011-12-09 22:00 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Jonathan McDowell
2011-12-12 10:46 ` Tomi Valkeinen
2011-12-09 2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* " Axel Lin
2011-12-19 23:15 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to Florian Tobias Schandinat
2011-12-19 23:14 ` [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Florian Tobias Schandinat
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).