Skip to contentSkip to conversation

Patch to run IrDA with no modules in 2.4.x

PATCH Pete Zaitcev 1 participant 1 message Jan 29, 2001 Networking

lore
Share & tools
lore
#0 lore raw

A minor problem here - module_init(irda_proto_init) got bracketed by #ifdef MODULE and became ineffective if compiled without modules.

-- Pete

net/irda/af_irda.c +1 -2
diff -ur -X dontdiff linux-2.4.1-pre11/net/irda/af_irda.c linux-2.4.1-pre11-p3/net/irda/af_irda.c
@@ -2409,6 +2409,7 @@
 #endif
 	return 0;
 }
+module_init(irda_proto_init);
 
 /*
  * Function irda_proto_cleanup (void)
@@ -2429,11 +2430,9 @@
 	
         return;
 }
-module_init(irda_proto_init);
 module_exit(irda_proto_cleanup);
  
 MODULE_AUTHOR("Dag Brattli <[email protected]>");
 MODULE_DESCRIPTION("The Linux IrDA Protocol Subsystem"); 
 MODULE_PARM(irda_debug, "1l");
 #endif /* MODULE */
-

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/