Skip to contentSkip to conversation

Staging: dt3155: make module_{init/exit} functions static

PATCH New H Hartley Sweeten 1 participant 1 message Jul 23, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: dt3155: make module_{init/exit} functions static

The module_init() and module_exit() functions should be static and marked with __init and __exit.

Cc Greg Kroah-Hartman <[email protected]>
Cc Scott Smedley <[email protected]>

---

drivers/staging/dt3155/dt3155_drv.c +2 -2
index 9e7b880..7316996 100644
@@ -940,7 +940,7 @@ err:
 u32 allocatorAddr = 0;
 
 
-int dt3155_init(void)
+static int __init dt3155_init(void)
 {
   struct dt3155_status *dts;
   int index;
@@ -1059,7 +1059,7 @@ int dt3155_init(void)
   return 0;
 }
 
-void dt3155_exit(void)
+static void __exit dt3155_exit(void)
 {
   struct dt3155_status *dts;
   int index;