diff options
author | Ingo Molnar <mingo@elte.hu> | 2005-09-09 16:10:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:48 -0400 |
commit | 8d06afab73a75f40ae2864e6c296356bab1ab473 (patch) | |
tree | 1d9c8c24a1024a12a4e8df841fba5809fa914356 /drivers/cdrom/sbpcd.c | |
parent | 7c352bdf048811b8128019ffc1e886161e09c11c (diff) |
[PATCH] timer initialization cleanup: DEFINE_TIMER
Clean up timer initialization by introducing DEFINE_TIMER a'la
DEFINE_SPINLOCK. Build and boot-tested on x86. A similar patch has been
been in the -RT tree for some time.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/cdrom/sbpcd.c')
-rw-r--r-- | drivers/cdrom/sbpcd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c index 452d34675159..30a897755361 100644 --- a/drivers/cdrom/sbpcd.c +++ b/drivers/cdrom/sbpcd.c | |||
@@ -742,13 +742,10 @@ static struct sbpcd_drive *current_drive = D_S; | |||
742 | unsigned long cli_sti; /* for saving the processor flags */ | 742 | unsigned long cli_sti; /* for saving the processor flags */ |
743 | #endif | 743 | #endif |
744 | /*==========================================================================*/ | 744 | /*==========================================================================*/ |
745 | static struct timer_list delay_timer = | 745 | static DEFINE_TIMER(delay_timer, mark_timeout_delay, 0, 0); |
746 | TIMER_INITIALIZER(mark_timeout_delay, 0, 0); | 746 | static DEFINE_TIMER(data_timer, mark_timeout_data, 0, 0); |
747 | static struct timer_list data_timer = | ||
748 | TIMER_INITIALIZER(mark_timeout_data, 0, 0); | ||
749 | #if 0 | 747 | #if 0 |
750 | static struct timer_list audio_timer = | 748 | static DEFINE_TIMER(audio_timer, mark_timeout_audio, 0, 0); |
751 | TIMER_INITIALIZER(mark_timeout_audio, 0, 0); | ||
752 | #endif | 749 | #endif |
753 | /*==========================================================================*/ | 750 | /*==========================================================================*/ |
754 | /* | 751 | /* |