Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133358
b: refs/heads/master
c: 7362951
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 4d73c5d commit 7296afb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d336ae3cf567185fb8fc03c10e9394920f7d5ab1
refs/heads/master: 7362951b4818763b6abaecd3f870739125145cc1
11 changes: 6 additions & 5 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,11 +941,6 @@ static int init_irq (ide_hwif_t *hwif)
int sa = 0;

mutex_lock(&ide_cfg_mtx);
spin_lock_init(&hwif->lock);

init_timer(&hwif->timer);
hwif->timer.function = &ide_timer_expiry;
hwif->timer.data = (unsigned long)hwif;

irq_handler = hwif->host->irq_handler;
if (irq_handler == NULL)
Expand Down Expand Up @@ -1306,6 +1301,12 @@ static void ide_init_port_data(ide_hwif_t *hwif, unsigned int index)
hwif->name[2] = 'e';
hwif->name[3] = '0' + index;

spin_lock_init(&hwif->lock);

init_timer(&hwif->timer);
hwif->timer.function = &ide_timer_expiry;
hwif->timer.data = (unsigned long)hwif;

init_completion(&hwif->gendev_rel_comp);

hwif->tp_ops = &default_tp_ops;
Expand Down

0 comments on commit 7296afb

Please sign in to comment.