patch-2.4.19 linux-2.4.19/drivers/sbus/char/sunserial.c

Next file: linux-2.4.19/drivers/sbus/char/uctrl.c
Previous file: linux-2.4.19/drivers/sbus/char/sunkbd.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/sbus/char/sunserial.c linux-2.4.19/drivers/sbus/char/sunserial.c
@@ -139,7 +139,7 @@
 	nop_getkeycode
 };
 
-#ifdef CONFIG_USB
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 extern void pci_compute_shiftstate(void);
 extern int pci_setkeycode(unsigned int, unsigned int);
 extern int pci_getkeycode(unsigned int);
@@ -158,7 +158,7 @@
 		err = init->init();
 		init = init->next;
 	}
-#ifdef CONFIG_USB
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 	if (!serial_console &&
 	    kbd_ops.compute_shiftstate == nop_compute_shiftstate) {
 		printk("kbd_init: Assuming USB keyboard.\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)