patch-2.3.99-pre7 linux/arch/m68k/atari/atakeyb.c

Next file: linux/arch/m68k/defconfig
Previous file: linux/arch/ia64/sn/sn1/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/arch/m68k/atari/atakeyb.c linux/arch/m68k/atari/atakeyb.c
@@ -287,8 +287,8 @@
 	/* A keyboard int may have come in before we disabled the irq, so
 	 * double-check whether rep_scancode is still != 0 */
 	if (rep_scancode) {
+		init_timer(&atakeyb_rep_timer);
 		atakeyb_rep_timer.expires = jiffies + key_repeat_rate;
-		atakeyb_rep_timer.prev = atakeyb_rep_timer.next = NULL;
 		add_timer( &atakeyb_rep_timer );
 
 		handle_scancode(rep_scancode, 1);
@@ -444,7 +444,6 @@
 		    del_timer( &atakeyb_rep_timer );
 		    rep_scancode = scancode;
 		    atakeyb_rep_timer.expires = jiffies + key_repeat_delay;
-		    atakeyb_rep_timer.prev = atakeyb_rep_timer.next = NULL;
 		    add_timer( &atakeyb_rep_timer );
 		}
 

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