drivers: video: use module_platform_driver_probe()
Subsystems (2)
PATCH v4 1/1 drivers: video: use module_platform_driver_probe()
This patch converts the drivers to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler.
---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fix amifb.c
v3:
- add missing drivers: amifb, atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted drivers
drivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)
drivers/video/amifb.c +1 -13
@@ -3788,19 +3788,7 @@ static struct platform_driver amifb_driver = { }, }; -static int __init amifb_init (void ) -{ -return platform_driver_probe (&amifb_driver, amifb_probe); -} - -module_init (amifb_init); - -static void __exit amifb_exit(void) -{ -platform_driver_unregister (&amifb_driver); -} - -module_exit (amifb_exit); +module_platform_driver_probe (amifb_driver, amifb_probe);MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:amiga-video" );
drivers/video/atmel_lcdfb.c +1 -12
@@ -1150,18 +1150,7 @@ static struct platform_driver atmel_lcdfb_driver = { }, }; -static int __init atmel_lcdfb_init (void ) -{ -return platform_driver_probe (&atmel_lcdfb_driver, atmel_lcdfb_probe); -} - -static void __exit atmel_lcdfb_exit(void) -{ -platform_driver_unregister (&atmel_lcdfb_driver); -} - -module_init (atmel_lcdfb_init); -module_exit (atmel_lcdfb_exit); +module_platform_driver_probe (atmel_lcdfb_driver, atmel_lcdfb_probe);MODULE_DESCRIPTION ("AT91/AT32 LCD Controller framebuffer driver" );MODULE_AUTHOR ("Nicolas Ferre <[email protected]>" );
drivers/video/omap2/vrfb.c +1 -12
@@ -397,18 +397,7 @@ static struct platform_driver vrfb_driver = { .remove = __exit_p(vrfb_remove), }; -static int __init vrfb_init (void ) -{ -return platform_driver_probe (&vrfb_driver, &vrfb_probe); -} - -static void __exit vrfb_exit(void) -{ -platform_driver_unregister (&vrfb_driver); -} - -module_init (vrfb_init); -module_exit (vrfb_exit); +module_platform_driver_probe (vrfb_driver, vrfb_probe);MODULE_AUTHOR ("Tomi Valkeinen <[email protected]>" );MODULE_DESCRIPTION ("OMAP VRFB" );
drivers/video/sh_mipi_dsi.c +1 -11
@@ -581,17 +581,7 @@ static struct platform_driver sh_mipi_driver = { }, }; -static int __init sh_mipi_init (void ) -{ -return platform_driver_probe (&sh_mipi_driver, sh_mipi_probe); -} -module_init (sh_mipi_init); - -static void __exit sh_mipi_exit(void) -{ -platform_driver_unregister (&sh_mipi_driver); -} -module_exit (sh_mipi_exit); +module_platform_driver_probe (sh_mipi_driver, sh_mipi_probe);MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>" );MODULE_DESCRIPTION ("SuperH / ARM-shmobile MIPI DSI driver" );
drivers/video/sh_mobile_hdmi.c +1 -11
@@ -1445,17 +1445,7 @@ static struct platform_driver sh_hdmi_driver = { }, }; -static int __init sh_hdmi_init (void ) -{ -return platform_driver_probe (&sh_hdmi_driver, sh_hdmi_probe); -} -module_init (sh_hdmi_init); - -static void __exit sh_hdmi_exit(void) -{ -platform_driver_unregister (&sh_hdmi_driver); -} -module_exit (sh_hdmi_exit); +module_platform_driver_probe (sh_hdmi_driver, sh_hdmi_probe);MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>" );MODULE_DESCRIPTION ("SuperH / ARM-shmobile HDMI driver" );
Signature · 1 line
1.8.1.5
Quoted 151 lines · Fabio Porcedda
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 <[email protected]>Cc Florian Tobias Schandinat <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Howells <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Kuninori Morimoto <[email protected]>---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fixamifb.c
v3:
- add missing drivers: amifb,atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted driversdrivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)drivers/video/amifb.c +1
-13@@ -3788,19 +3788,7 @@ static struct platform_driver amifb_driver = { }, }; -static int __init amifb_init (void ) -{ -return platform_driver_probe (&amifb_driver, amifb_probe); -} - -module_init (amifb_init); - -static void __exit amifb_exit(void) -{ -platform_driver_unregister (&amifb_driver); -} - -module_exit (amifb_exit); +module_platform_driver_probe (amifb_driver, amifb_probe);MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:amiga-video" );drivers/video/atmel_lcdfb.c +1
-12@@ -1150,18 +1150,7 @@ static struct platform_driver atmel_lcdfb_driver = { }, }; -static int __init atmel_lcdfb_init (void ) -{ -return platform_driver_probe (&atmel_lcdfb_driver, atmel_lcdfb_probe); -} - -static void __exit atmel_lcdfb_exit(void) -{ -platform_driver_unregister (&atmel_lcdfb_driver); -} - -module_init (atmel_lcdfb_init); -module_exit (atmel_lcdfb_exit); +module_platform_driver_probe (atmel_lcdfb_driver, atmel_lcdfb_probe);MODULE_DESCRIPTION ("AT91/AT32 LCD Controller framebuffer driver" );MODULE_AUTHOR ("Nicolas Ferre <[email protected]>" );drivers/video/omap2/vrfb.c +1
-12@@ -397,18 +397,7 @@ static struct platform_driver vrfb_driver = { .remove = __exit_p(vrfb_remove), }; -static int __init vrfb_init (void ) -{ -return platform_driver_probe (&vrfb_driver, &vrfb_probe); -} - -static void __exit vrfb_exit(void) -{ -platform_driver_unregister (&vrfb_driver); -} - -module_init (vrfb_init); -module_exit (vrfb_exit); +module_platform_driver_probe (vrfb_driver, vrfb_probe);MODULE_AUTHOR ("Tomi Valkeinen <[email protected]>" );MODULE_DESCRIPTION ("OMAP VRFB" );drivers/video/sh_mipi_dsi.c +1
-11@@ -581,17 +581,7 @@ static struct platform_driver sh_mipi_driver = { }, }; -static int __init sh_mipi_init (void ) -{ -return platform_driver_probe (&sh_mipi_driver, sh_mipi_probe); -} -module_init (sh_mipi_init); - -static void __exit sh_mipi_exit(void) -{ -platform_driver_unregister (&sh_mipi_driver); -} -module_exit (sh_mipi_exit); +module_platform_driver_probe (sh_mipi_driver, sh_mipi_probe);MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>" );MODULE_DESCRIPTION ("SuperH / ARM-shmobile MIPI DSI driver" );drivers/video/sh_mobile_hdmi.c +1
-12@@ -1445,17 +1445,7 @@ static struct platform_driver sh_hdmi_driver = { }, }; -static int __init sh_hdmi_init (void ) -{ -return platform_driver_probe (&sh_hdmi_driver, sh_hdmi_probe); -} -module_init (sh_hdmi_init); - -static void __exit sh_hdmi_exit(void) -{ -platform_driver_unregister (&sh_hdmi_driver); -} -module_exit (sh_hdmi_exit); +module_platform_driver_probe (sh_hdmi_driver, sh_hdmi_probe);MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>" );MODULE_DESCRIPTION ("SuperH / ARM-shmobile HDMI driver" ); --
Quoted 2 lines
1.8.1.5
ping
Regards
--
Fabio Porcedda
Tomi Valkeinen
AppliedQuoted 24 lines · Fabio Porcedda
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 <[email protected]>Cc Florian Tobias Schandinat <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Howells <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Kuninori Morimoto <[email protected]>---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fixamifb.c
v3:
- add missing drivers: amifb,atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted drivers
Quoted 6 lines
drivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)
Thanks, applied to fbdev branch.
Tomi
Quoted 25 lines · Tomi Valkeinen
Quoted 24 lines · Fabio Porcedda
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 <[email protected]>Cc Florian Tobias Schandinat <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Howells <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Kuninori Morimoto <[email protected]>---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fixamifb.c
v3:
- add missing drivers: amifb,atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted drivers
Quoted 8 lines
Quoted 6 lines
drivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)Thanks, applied to fbdev branch.
Thanks for taking it.
I don't see this patch neither in linux-next nor ingit://gitorious.org/linux-omap-dss2/linux.git,
in which repository/branch is it?
Regards
--
Fabio Porcedda
Quoted 3 lines
Tomi
Quoted 33 lines · Fabio Porcedda
Quoted 32 lines · Tomi Valkeinen
Quoted 30 lines · Fabio Porcedda
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 <[email protected]>Cc Florian Tobias Schandinat <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Howells <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Kuninori Morimoto <[email protected]>---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fixamifb.c
v3:
- add missing drivers: amifb,atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted driversdrivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)
Quoted 6 lines
Quoted 1 line
Thanks, applied to fbdev branch.
Thanks for taking it.
I don't see this patch neither in linux-next nor ingit://gitorious.org/linux-omap-dss2/linux.git,
in which repository/branch is it?
I just pushed for-next branch an hour ago or so, to the above mentioned gitorious tree. So should be in linux-next tomorrow, I guess.
Tomi
Quoted 36 lines · Tomi Valkeinen
Quoted 35 lines · Fabio Porcedda
Quoted 33 lines · Tomi Valkeinen
Quoted 24 lines · Fabio Porcedda
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 <[email protected]>Cc Florian Tobias Schandinat <[email protected]>Cc Tomi Valkeinen <[email protected]>Cc David Howells <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Kuninori Morimoto <[email protected]>---
Notes:
v4:
- add acked-by Nicolas & Laurent
- fixamifb.c
v3:
- add missing drivers: amifb,atmel_lcdfb, vrfb
- split patch set to each maintainer to easy up respin
v2:
- rebased over linux-next and remove already converted driversQuoted 6 lines
drivers/video/amifb.c | 14 +------------- drivers/video/atmel_lcdfb.c | 13 +------------ drivers/video/omap2/vrfb.c | 13 +------------ drivers/video/sh_mipi_dsi.c | 12 +----------- drivers/video/sh_mobile_hdmi.c | 12 +----------- 5 files changed, 5 insertions(+), 59 deletions(-)Thanks, applied to fbdev branch.
Quoted 7 lines
Quoted 4 lines
Thanks for taking it.
I don't see this patch neither in linux-next nor ingit://gitorious.org/linux-omap-dss2/linux.git,
in which repository/branch is it?I just pushed for-next branch an hour ago or so, to the above mentioned gitorious tree. So should be in linux-next tomorrow, I guess.
Thanks.
--
Fabio Porcedda
Quoted 3 lines
Tomi