Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98730
b: refs/heads/master
c: bd8a59e
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 5, 2008
1 parent 2aa458c commit 5048869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 7cd95f56cb61f5348d062527c9d3653196f6e629
refs/heads/master: bd8a59e29726b2a5ff7baefe995febdc63044a61
12 changes: 6 additions & 6 deletions trunk/drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,14 @@ void ide_unregister(ide_hwif_t *hwif)

BUG_ON(in_interrupt());
BUG_ON(irqs_disabled());

mutex_lock(&ide_cfg_mtx);
spin_lock_irq(&ide_lock);
if (!hwif->present)
goto abort;
__ide_port_unregister_devices(hwif);
hwif->present = 0;

spin_lock_irq(&ide_lock);
if (hwif->present) {
__ide_port_unregister_devices(hwif);
hwif->present = 0;
}
spin_unlock_irq(&ide_lock);

ide_proc_unregister_port(hwif);
Expand Down Expand Up @@ -359,7 +360,6 @@ void ide_unregister(ide_hwif_t *hwif)
/* restore hwif data to pristine status */
ide_init_port_data(hwif, hwif->index);

abort:
spin_unlock_irq(&ide_lock);
mutex_unlock(&ide_cfg_mtx);
}
Expand Down

0 comments on commit 5048869

Please sign in to comment.