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;
static unsigned int network_rec_config_shadow = 0;
/* Network speed indication. */
static struct timer_list speed_timer;
static struct timer_list clear_led_timer;
static struct timer_list speed_timer = TIMER_INITIALIZER(NULL, 0, 0);
static struct timer_list clear_led_timer = TIMER_INITIALIZER(NULL, 0, 0);
static int current_speed; /* Speed read from tranceiver */
static int current_speed_selection; /* Speed selected by user */
static int led_next_time;
......
......@@ -294,7 +294,7 @@ irq_to_bit_pos(int irq) {
#ifdef ajmtestintr
#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];
struct intr_test_reg_struct {
pcibr_soft_t pcibr_soft;
......
......@@ -238,7 +238,7 @@ sn_cpei_handler(int irq, void *devid, struct pt_regs *regs) {
#include <linux/timer.h>
#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
......
......@@ -62,7 +62,7 @@ void __init amiga_init_sound(void)
}
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 )
{
......
......@@ -56,7 +56,8 @@ static void ( *mac_special_bell )( unsigned int, unsigned int, unsigned int ) =
/*
* 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
......
......@@ -1375,8 +1375,7 @@ static void cs_nosound(unsigned long xx)
restore_flags(flags);
}
static struct timer_list beep_timer = {
.function = cs_nosound
static struct timer_list beep_timer = TIMER_INITIALIZER(cs_nosound, 0, 0);
};
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