dect
/
linux-2.6
Archived
13
0
Fork 0

tcm_fc: init/exit functions should not be protected by "#ifdef MODULE"

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 <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
Roland Dreier 2011-08-12 10:16:52 -07:00 committed by Nicholas Bellinger
parent f15ea5780d
commit 4e0f05297f
1 changed files with 0 additions and 2 deletions

View File

@ -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 */