patch-2.3.99-pre7 linux/drivers/sbus/char/sunkbd.c

Next file: linux/drivers/sbus/char/sunmouse.c
Previous file: linux/drivers/sbus/char/sab82532.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/sbus/char/sunkbd.c linux/drivers/sbus/char/sunkbd.c
@@ -438,7 +438,7 @@
 static void keyboard_timer (unsigned long ignored);
 
 static struct timer_list
-auto_repeat_timer = { NULL, NULL, 0, 0, keyboard_timer };
+auto_repeat_timer = { function: keyboard_timer };
 
 /* Keeps track of the last pressed key */
 static unsigned char last_keycode;
@@ -1219,8 +1219,7 @@
 static void sunkbd_kd_mksound(unsigned int hz, unsigned int ticks)
 {
 	unsigned long flags;
-	static struct timer_list sound_timer = { NULL, NULL, 0, 0,
-						 sunkbd_kd_nosound };
+	static struct timer_list sound_timer = { function: sunkbd_kd_nosound };
 
 	spin_lock_irqsave(&sunkbd_lock, flags);
 

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