patch-2.4.21 linux-2.4.21/drivers/input/keybdev.c

Next file: linux-2.4.21/drivers/input/mousedev.c
Previous file: linux-2.4.21/drivers/input/joydev.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/input/keybdev.c linux-2.4.21/drivers/input/keybdev.c
@@ -201,6 +201,7 @@
 	input_open_device(handle);
 
 //	printk(KERN_INFO "keybdev.c: Adding keyboard: input%d\n", dev->number);
+	kbd_refresh_leds();
 
 	return handle;
 }
@@ -222,6 +223,7 @@
 {
 	input_register_handler(&keybdev_handler);
 	kbd_ledfunc = keybdev_ledfunc;
+	kbd_refresh_leds();
 
 	if (jp_kbd_109) {
 		x86_keycodes[0xb5] = 0x73;	/* backslash, underscore */

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