add __init/__exit macros to omap video drivers
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 29 Sep 2009 01:18:06 +0000 (03:18 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 9 Nov 2009 08:40:55 +0000 (09:40 +0100)
Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of the following drivers in media/omap:
drivers/video/omap/lcd_ams_delta.c
drivers/video/omap/lcd_mipid.c

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/video/omap/lcd_ams_delta.c
drivers/video/omap/lcd_mipid.c

index 1f7439955e02d51cd4487ac07233a00a28153a02..319a9a2bc236ea042d8c8d992558ab2622e74074 100644 (file)
@@ -123,12 +123,12 @@ struct platform_driver ams_delta_panel_driver = {
        },
 };
 
-static int ams_delta_panel_drv_init(void)
+static int __init ams_delta_panel_drv_init(void)
 {
        return platform_driver_register(&ams_delta_panel_driver);
 }
 
-static void ams_delta_panel_drv_cleanup(void)
+static void __exit ams_delta_panel_drv_cleanup(void)
 {
        platform_driver_unregister(&ams_delta_panel_driver);
 }
index 918ee893419696f843044ebcd57b533d92849ccb..d88a7928b34149753e447033592104585f70b3d0 100644 (file)
@@ -607,7 +607,7 @@ static struct spi_driver mipid_spi_driver = {
        .remove = __devexit_p(mipid_spi_remove),
 };
 
-static int mipid_drv_init(void)
+static int __init mipid_drv_init(void)
 {
        spi_register_driver(&mipid_spi_driver);
 
@@ -615,7 +615,7 @@ static int mipid_drv_init(void)
 }
 module_init(mipid_drv_init);
 
-static void mipid_drv_cleanup(void)
+static void __exit mipid_drv_cleanup(void)
 {
        spi_unregister_driver(&mipid_spi_driver);
 }