patch-2.1.123 linux/drivers/char/pc_keyb.c

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

diff -u --recursive --new-file v2.1.122/linux/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
@@ -611,6 +611,9 @@
 
 void __init pckbd_init_hw(void)
 {
+	/* Get the keyboard controller registers (incomplete decode) */
+	request_region(0x60, 16, "keyboard");
+
 	/* Flush any pending input. */
 	kbd_clear_input();
 
@@ -620,6 +623,6 @@
 			printk(KERN_WARNING "initialize_kbd: %s\n", msg);
 	}
 
+	/* Ok, finally allocate the IRQ, and off we go.. */
 	request_irq(KEYBOARD_IRQ, keyboard_interrupt, 0, "keyboard", NULL);
-	request_region(0x60, 16, "keyboard");
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov