summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-27 12:02:54 +0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-01-29 00:59:38 +0400
commitc6d242aa64d27ebd258a12aa0a5da068e25e01f5 (patch)
tree4bd6bb41fadba7bda8ca601c45aff4a36f27e0e7 /drivers/video/omap2/displays/panel-lgphilips-lb035q02.c
parentd8b97db4c8e40e49985fa5802be914292add64f6 (diff)
downloadlinux-c6d242aa64d27ebd258a12aa0a5da068e25e01f5.tar.xz
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/panel-lgphilips-lb035q02.c')
-rw-r--r--drivers/video/omap2/displays/panel-lgphilips-lb035q02.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c b/drivers/video/omap2/displays/panel-lgphilips-lb035q02.c
index e0eb35be303e..0841cc2b3f77 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 = {
.remove = __devexit_p(lb035q02_panel_spi_remove),
};
-static int __init lb035q02_panel_drv_init(void)
-{
- return spi_register_driver(&lb035q02_spi_driver);
-}
-
-static void __exit lb035q02_panel_drv_exit(void)
-{
- spi_unregister_driver(&lb035q02_spi_driver);
-}
+module_spi_driver(lb035q02_spi_driver);
-module_init(lb035q02_panel_drv_init);
-module_exit(lb035q02_panel_drv_exit);
MODULE_LICENSE("GPL");