diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-27 03:02:54 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-01-28 15:59:38 -0500 |
commit | c6d242aa64d27ebd258a12aa0a5da068e25e01f5 (patch) | |
tree | 4bd6bb41fadba7bda8ca601c45aff4a36f27e0e7 /drivers/video/omap2/displays | |
parent | d8b97db4c8e40e49985fa5802be914292add64f6 (diff) |
video: convert drivers/video/* to use module_spi_driver()
This patch converts the drivers in drivers/video/* to use the
module_spi_driver() macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Imre Deak <imre.deak@nokia.com>
Cc: Roger Quadros <roger.quadros@nokia.com>
Cc: Steve Sakoman <steve@sakoman.com>
Cc: Erik Gilling <konkers@android.com>
Cc: Gražvydas Ignotas <notasas@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/omap2/displays')
4 files changed, 4 insertions, 46 deletions
diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c index 51a87e149e2..d26f37ac69d 100644 --- a/drivers/video/omap2/displays/panel-acx565akm.c +++ b/drivers/video/omap2/displays/panel-acx565akm.c | |||
@@ -809,18 +809,7 @@ static struct spi_driver acx565akm_spi_driver = { | |||
809 | .remove = __devexit_p(acx565akm_spi_remove), | 809 | .remove = __devexit_p(acx565akm_spi_remove), |
810 | }; | 810 | }; |
811 | 811 | ||
812 | static int __init acx565akm_init(void) | 812 | module_spi_driver(acx565akm_spi_driver); |
813 | { | ||
814 | return spi_register_driver(&acx565akm_spi_driver); | ||
815 | } | ||
816 | |||
817 | static void __exit acx565akm_exit(void) | ||
818 | { | ||
819 | spi_unregister_driver(&acx565akm_spi_driver); | ||
820 | } | ||
821 | |||
822 | module_init(acx565akm_init); | ||
823 | module_exit(acx565akm_exit); | ||
824 | 813 | ||
825 | MODULE_AUTHOR("Nokia Corporation"); | 814 | MODULE_AUTHOR("Nokia Corporation"); |
826 | MODULE_DESCRIPTION("acx565akm LCD Driver"); | 815 | MODULE_DESCRIPTION("acx565akm LCD Driver"); |
diff --git a/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c b/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c index e0eb35be303..0841cc2b3f7 100644 --- a/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c +++ b/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c | |||
@@ -264,16 +264,6 @@ static struct spi_driver lb035q02_spi_driver = { | |||
264 | .remove = __devexit_p(lb035q02_panel_spi_remove), | 264 | .remove = __devexit_p(lb035q02_panel_spi_remove), |
265 | }; | 265 | }; |
266 | 266 | ||
267 | static int __init lb035q02_panel_drv_init(void) | 267 | module_spi_driver(lb035q02_spi_driver); |
268 | { | ||
269 | return spi_register_driver(&lb035q02_spi_driver); | ||
270 | } | ||
271 | |||
272 | static void __exit lb035q02_panel_drv_exit(void) | ||
273 | { | ||
274 | spi_unregister_driver(&lb035q02_spi_driver); | ||
275 | } | ||
276 | 268 | ||
277 | module_init(lb035q02_panel_drv_init); | ||
278 | module_exit(lb035q02_panel_drv_exit); | ||
279 | MODULE_LICENSE("GPL"); | 269 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c index 0eb31caddca..8b38b39213f 100644 --- a/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c +++ b/drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c | |||
@@ -350,18 +350,8 @@ static struct spi_driver nec_8048_spi_driver = { | |||
350 | }, | 350 | }, |
351 | }; | 351 | }; |
352 | 352 | ||
353 | static int __init nec_8048_lcd_init(void) | 353 | module_spi_driver(nec_8048_spi_driver); |
354 | { | ||
355 | return spi_register_driver(&nec_8048_spi_driver); | ||
356 | } | ||
357 | |||
358 | static void __exit nec_8048_lcd_exit(void) | ||
359 | { | ||
360 | return spi_unregister_driver(&nec_8048_spi_driver); | ||
361 | } | ||
362 | 354 | ||
363 | module_init(nec_8048_lcd_init); | ||
364 | module_exit(nec_8048_lcd_exit); | ||
365 | MODULE_AUTHOR("Erik Gilling <konkers@android.com>"); | 355 | MODULE_AUTHOR("Erik Gilling <konkers@android.com>"); |
366 | MODULE_DESCRIPTION("NEC-nl8048hl11-01b Driver"); | 356 | MODULE_DESCRIPTION("NEC-nl8048hl11-01b Driver"); |
367 | MODULE_LICENSE("GPL"); | 357 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index 880c313d6bc..0ca9644f9ea 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c | |||
@@ -511,18 +511,7 @@ static struct spi_driver tpo_td043_spi_driver = { | |||
511 | .remove = __devexit_p(tpo_td043_spi_remove), | 511 | .remove = __devexit_p(tpo_td043_spi_remove), |
512 | }; | 512 | }; |
513 | 513 | ||
514 | static int __init tpo_td043_init(void) | 514 | module_spi_driver(tpo_td043_spi_driver); |
515 | { | ||
516 | return spi_register_driver(&tpo_td043_spi_driver); | ||
517 | } | ||
518 | |||
519 | static void __exit tpo_td043_exit(void) | ||
520 | { | ||
521 | spi_unregister_driver(&tpo_td043_spi_driver); | ||
522 | } | ||
523 | |||
524 | module_init(tpo_td043_init); | ||
525 | module_exit(tpo_td043_exit); | ||
526 | 515 | ||
527 | MODULE_AUTHOR("Gražvydas Ignotas <notasas@gmail.com>"); | 516 | MODULE_AUTHOR("Gražvydas Ignotas <notasas@gmail.com>"); |
528 | MODULE_DESCRIPTION("TPO TD043MTEA1 LCD Driver"); | 517 | MODULE_DESCRIPTION("TPO TD043MTEA1 LCD Driver"); |