public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch to run IrDA with no modules in 2.4.x
@ 2001-01-29  5:41 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2001-01-29  5:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: dagb

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

-- Pete

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
--- linux-2.4.1-pre11/net/irda/af_irda.c	Sat Nov 11 18:11:23 2000
+++ linux-2.4.1-pre11-p3/net/irda/af_irda.c	Sun Jan 28 21:31:16 2001
@@ -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 <dagb@cs.uit.no>");
 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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-29  5:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-29  5:41 Patch to run IrDA with no modules in 2.4.x Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox