Skip to content
Snippets Groups Projects
Commit edab4064 authored by Eric Mei's avatar Eric Mei
Browse files

module's init function will not get called when loading in 2.6.

parent 02d40375
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,10 @@
* initialization routines must be called after device
* driver initialization
*/
#ifndef MODULE
#undef module_init
#define module_init(a) late_initcall(a)
#endif
/* XXX our code should be using the 2.6 calls, not the other way around */
#define TryLockPage(page) TestSetPageLocked(page)
......
......@@ -352,8 +352,6 @@ EXPORT_SYMBOL(l_readdir);
EXPORT_SYMBOL(obd_memory);
EXPORT_SYMBOL(obd_memmax);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
static int __init lvfs_linux_init(void)
{
RETURN(0);
......@@ -377,10 +375,3 @@ MODULE_LICENSE("GPL");
module_init(lvfs_linux_init);
module_exit(lvfs_linux_exit);
#else
#warning "lvfs_linux_init() and fsfilt_ext3_exit() aren't called on 2.6. MUST be fixed"
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment