patch-1.3.33 linux/drivers/char/lp.c

Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/char/keyboard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.32/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -559,22 +559,17 @@
 char kernel_version[]=UTS_RELEASE;
 int io[] = {0, 0, 0};
 int irq[] = {0, 0, 0};
-
-int init_module(void)
-#else
-long lp_init(long kmem_start)
+#define lp_init init_module
 #endif
+
+int lp_init(void)
 {
 	int offset = 0;
 	int count = 0;
 
 	if (register_chrdev(LP_MAJOR,"lp",&lp_fops)) {
 		printk("lp: unable to get major %d\n", LP_MAJOR);
-#ifdef MODULE
 		return -EIO;
-#else
-		return kmem_start;
-#endif
 	}
 #ifdef MODULE
 	/* When user feeds parameters, use them */
@@ -610,11 +605,7 @@
 	if (count == 0)
 		printk("lp: Driver configured but no interfaces found.\n");
 
-#ifdef MODULE
 	return 0;
-#else
-	return kmem_start;
-#endif
 }
 
 #ifdef MODULE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this