Skip to contentSkip to conversation

media/omap: adding __init/__exit macros to lcd_drivers

PATCH Applied Peter Hüwe 2 participants 3 messages Jul 3, 2009 – Jul 14, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media/omap: adding __init/__exit macros to lcd_drivers

From: Peter Huewe <[email protected]>

Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions to several files in drivers/video/omap/

linux version 2.6.31-rc1 - linus git tree

---

drivers/video/omap/lcd_h3.c +2 -2
index 2486237..417ae5e 100644
@@ -124,12 +124,12 @@ struct platform_driver h3_panel_driver = {
 	},
 };
 
-static int h3_panel_drv_init(void)
+static int __init h3_panel_drv_init(void)
 {
 	return platform_driver_register(&h3_panel_driver);
 }
 
-static void h3_panel_drv_cleanup(void)
+static void __exit h3_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&h3_panel_driver);
 }
drivers/video/omap/lcd_h4.c +2 -2
index 6ff5643..0c398bd 100644
@@ -102,12 +102,12 @@ static struct platform_driver h4_panel_driver = {
 	},
 };
 
-static int h4_panel_drv_init(void)
+static int __init h4_panel_drv_init(void)
 {
 	return platform_driver_register(&h4_panel_driver);
 }
 
-static void h4_panel_drv_cleanup(void)
+static void __exit h4_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&h4_panel_driver);
 }
drivers/video/omap/lcd_inn1510.c +2 -2
index 6953ed4..cdbd8bb 100644
@@ -109,12 +109,12 @@ struct platform_driver innovator1510_panel_driver = {
 	},
 };
 
-static int innovator1510_panel_drv_init(void)
+static int __init innovator1510_panel_drv_init(void)
 {
 	return platform_driver_register(&innovator1510_panel_driver);
 }
 
-static void innovator1510_panel_drv_cleanup(void)
+static void __exit innovator1510_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&innovator1510_panel_driver);
 }
drivers/video/omap/lcd_inn1610.c +2 -2
index 4c4f7ee..268f7f8 100644
@@ -133,12 +133,12 @@ struct platform_driver innovator1610_panel_driver = {
 	},
 };
 
-static int innovator1610_panel_drv_init(void)
+static int __init innovator1610_panel_drv_init(void)
 {
 	return platform_driver_register(&innovator1610_panel_driver);
 }
 
-static void innovator1610_panel_drv_cleanup(void)
+static void __exit innovator1610_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&innovator1610_panel_driver);
 }
drivers/video/omap/lcd_osk.c +2 -2
index 379c96d..b3fa88b 100644
@@ -127,12 +127,12 @@ struct platform_driver osk_panel_driver = {
 	},
 };
 
-static int osk_panel_drv_init(void)
+static int __init osk_panel_drv_init(void)
 {
 	return platform_driver_register(&osk_panel_driver);
 }
 
-static void osk_panel_drv_cleanup(void)
+static void __exit osk_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&osk_panel_driver);
 }
drivers/video/omap/lcd_palmte.c +2 -2
index 2183173..4bf3c79 100644
@@ -108,12 +108,12 @@ struct platform_driver palmte_panel_driver = {
 	},
 };
 
-static int palmte_panel_drv_init(void)
+static int __init palmte_panel_drv_init(void)
 {
 	return platform_driver_register(&palmte_panel_driver);
 }
 
-static void palmte_panel_drv_cleanup(void)
+static void __exit palmte_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&palmte_panel_driver);
 }
drivers/video/omap/lcd_palmtt.c +2 -2
index 57b0f6c..48ea1f9 100644
@@ -113,12 +113,12 @@ struct platform_driver palmtt_panel_driver = {
 	},
 };
 
-static int palmtt_panel_drv_init(void)
+static int __init palmtt_panel_drv_init(void)
 {
 	return platform_driver_register(&palmtt_panel_driver);
 }
 
-static void palmtt_panel_drv_cleanup(void)
+static void __exit palmtt_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&palmtt_panel_driver);
 }
drivers/video/omap/lcd_palmz71.c +2 -2
index d33d78b..0697d29 100644
@@ -109,12 +109,12 @@ struct platform_driver palmz71_panel_driver = {
 	},
 };
 
-static int palmz71_panel_drv_init(void)
+static int __init palmz71_panel_drv_init(void)
 {
 	return platform_driver_register(&palmz71_panel_driver);
 }
 
-static void palmz71_panel_drv_cleanup(void)
+static void __exit palmz71_panel_drv_cleanup(void)
 {
 	platform_driver_unregister(&palmz71_panel_driver);
 }
#1 lore raw

Am Freitag 03 Juli 2009 14:39:40 schrieb Peter Hüwe:

Quoted 8 lines

From: Peter Huewe <[email protected]>

Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions to several files in drivers/video/omap/

linux version 2.6.31-rc1 - linus git tree

Hi Jini,
any updates on this patch yet ? :)

Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#2 lore raw
In reply to Peter Hüwe
Quoted 4 lines · Peter Hüwe

From: Peter Huewe <[email protected]>

Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions to several files in drivers/video/omap/

Applied to trivial queue, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs