* [PATCH] Staging: dt3155: make module_{init/exit} functions static
@ 2010-07-23 18:38 H Hartley Sweeten
0 siblings, 0 replies; only message in thread
From: H Hartley Sweeten @ 2010-07-23 18:38 UTC (permalink / raw)
To: Linux Kernel; +Cc: devel, gregkh, ss
The module_init() and module_exit() functions should be static and marked
with __init and __exit.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Scott Smedley <ss@aao.gov.au>
---
diff --git a/drivers/staging/dt3155/dt3155_drv.c b/drivers/staging/dt3155/dt3155_drv.c
index 9e7b880..7316996 100644
--- a/drivers/staging/dt3155/dt3155_drv.c
+++ b/drivers/staging/dt3155/dt3155_drv.c
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-23 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 18:38 [PATCH] Staging: dt3155: make module_{init/exit} functions static H Hartley Sweeten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome