Commit 71479bdc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] initialize timers under arch/

This completes the kernel-wide audit.
parent add026ec
...@@ -234,8 +234,8 @@ static struct sk_buff *tx_skb; ...@@ -234,8 +234,8 @@ static struct sk_buff *tx_skb;
static unsigned int network_rec_config_shadow = 0; static unsigned int network_rec_config_shadow = 0;
/* Network speed indication. */ /* Network speed indication. */
static struct timer_list speed_timer; static struct timer_list speed_timer = TIMER_INITIALIZER(NULL, 0, 0);
static struct timer_list clear_led_timer; static struct timer_list clear_led_timer = TIMER_INITIALIZER(NULL, 0, 0);
static int current_speed; /* Speed read from tranceiver */ static int current_speed; /* Speed read from tranceiver */
static int current_speed_selection; /* Speed selected by user */ static int current_speed_selection; /* Speed selected by user */
static int led_next_time; static int led_next_time;
......
...@@ -294,7 +294,7 @@ irq_to_bit_pos(int irq) { ...@@ -294,7 +294,7 @@ irq_to_bit_pos(int irq) {
#ifdef ajmtestintr #ifdef ajmtestintr
#include <linux/timer.h> #include <linux/timer.h>
struct timer_list intr_test_timer; struct timer_list intr_test_timer = TIMER_INITIALIZER(NULL, 0, 0);
int intr_test_icount[NR_IRQS]; int intr_test_icount[NR_IRQS];
struct intr_test_reg_struct { struct intr_test_reg_struct {
pcibr_soft_t pcibr_soft; pcibr_soft_t pcibr_soft;
......
...@@ -238,7 +238,7 @@ sn_cpei_handler(int irq, void *devid, struct pt_regs *regs) { ...@@ -238,7 +238,7 @@ sn_cpei_handler(int irq, void *devid, struct pt_regs *regs) {
#include <linux/timer.h> #include <linux/timer.h>
#define CPEI_INTERVAL (HZ/100) #define CPEI_INTERVAL (HZ/100)
struct timer_list sn_cpei_timer; struct timer_list sn_cpei_timer = TIMER_INITIALIZER(NULL, 0, 0);
void sn_init_cpei_timer(void); void sn_init_cpei_timer(void);
void void
......
...@@ -62,7 +62,7 @@ void __init amiga_init_sound(void) ...@@ -62,7 +62,7 @@ void __init amiga_init_sound(void)
} }
static void nosound( unsigned long ignored ); static void nosound( unsigned long ignored );
static struct timer_list sound_timer = { function: nosound }; static struct timer_list sound_timer = TIMER_INITIALIZER(nosound, 0, 0);
void amiga_mksound( unsigned int hz, unsigned int ticks ) void amiga_mksound( unsigned int hz, unsigned int ticks )
{ {
......
...@@ -56,7 +56,8 @@ static void ( *mac_special_bell )( unsigned int, unsigned int, unsigned int ) = ...@@ -56,7 +56,8 @@ static void ( *mac_special_bell )( unsigned int, unsigned int, unsigned int ) =
/* /*
* our timer to start/continue/stop the bell * our timer to start/continue/stop the bell
*/ */
static struct timer_list mac_sound_timer = { function: mac_nosound }; static struct timer_list mac_sound_timer =
TIMER_INITIALIZER(mac_nosound, 0, 0);
/* /*
* Sort of initialize the sound chip (called from mac_mksound on the first * Sort of initialize the sound chip (called from mac_mksound on the first
......
...@@ -1375,8 +1375,7 @@ static void cs_nosound(unsigned long xx) ...@@ -1375,8 +1375,7 @@ static void cs_nosound(unsigned long xx)
restore_flags(flags); restore_flags(flags);
} }
static struct timer_list beep_timer = { static struct timer_list beep_timer = TIMER_INITIALIZER(cs_nosound, 0, 0);
.function = cs_nosound
}; };
static void cs_mksound(unsigned int hz, unsigned int ticks) static void cs_mksound(unsigned int hz, unsigned int ticks)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment