projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f15ea57
)
tcm_fc: init/exit functions should not be protected by "#ifdef MODULE"
author
Roland Dreier
<
[email protected]
>
Fri, 12 Aug 2011 17:16:52 +0000
(10:16 -0700)
committer
Nicholas Bellinger
<
[email protected]
>
Mon, 22 Aug 2011 19:26:32 +0000
(19:26 +0000)
There's no need for the #ifdef protection when building into the kernel,
and in fact we need the module_init() for the initialization function to
be called.
Signed-off-by: Roland Dreier <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/target/tcm_fc/tfc_conf.c
patch
|
blob
|
history
diff --git
a/drivers/target/tcm_fc/tfc_conf.c
b/drivers/target/tcm_fc/tfc_conf.c
index 8781d1e423df31629d2d5eaa19e2db0e409059d8..520a8baae7946b51551b69ac1dfca4a8aa416edc 100644
(file)
--- a/
drivers/target/tcm_fc/tfc_conf.c
+++ b/
drivers/target/tcm_fc/tfc_conf.c
@@
-655,9
+655,7
@@
static void __exit ft_exit(void)
synchronize_rcu();
}
-#ifdef MODULE
MODULE_DESCRIPTION("FC TCM fabric driver " FT_VERSION);
MODULE_LICENSE("GPL");
module_init(ft_init);
module_exit(ft_exit);
-#endif /* MODULE */