summaryrefslogtreecommitdiffstats
path: root/drivers/block/ps2esdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/ps2esdi.c')
-rw-r--r--drivers/block/ps2esdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c
index 305c89a00..766ea0a18 100644
--- a/drivers/block/ps2esdi.c
+++ b/drivers/block/ps2esdi.c
@@ -379,9 +379,9 @@ static void __init ps2esdi_geninit(void)
reset_status = 0;
reset_start = jiffies;
while (!reset_status) {
- esdi_timer.expires = HZ;
+ init_timer(&esdi_timer);
+ esdi_timer.expires = jiffies + HZ;
esdi_timer.data = 0;
- esdi_timer.next = esdi_timer.prev = NULL;
add_timer(&esdi_timer);
sleep_on(&ps2esdi_int);
}