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/omap | |
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/omap')
-rw-r--r-- | drivers/video/omap/lcd_mipid.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c index 8d546dd55e81..e3880c4a0bb1 100644 --- a/drivers/video/omap/lcd_mipid.c +++ b/drivers/video/omap/lcd_mipid.c | |||
@@ -609,19 +609,7 @@ static struct spi_driver mipid_spi_driver = { | |||
609 | .remove = __devexit_p(mipid_spi_remove), | 609 | .remove = __devexit_p(mipid_spi_remove), |
610 | }; | 610 | }; |
611 | 611 | ||
612 | static int __init mipid_drv_init(void) | 612 | module_spi_driver(mipid_spi_driver); |
613 | { | ||
614 | spi_register_driver(&mipid_spi_driver); | ||
615 | |||
616 | return 0; | ||
617 | } | ||
618 | module_init(mipid_drv_init); | ||
619 | |||
620 | static void __exit mipid_drv_cleanup(void) | ||
621 | { | ||
622 | spi_unregister_driver(&mipid_spi_driver); | ||
623 | } | ||
624 | module_exit(mipid_drv_cleanup); | ||
625 | 613 | ||
626 | MODULE_DESCRIPTION("MIPI display driver"); | 614 | MODULE_DESCRIPTION("MIPI display driver"); |
627 | MODULE_LICENSE("GPL"); | 615 | MODULE_LICENSE("GPL"); |