Skip to content

Commit

Permalink
ide: init_irq() doesn't need to hold ide_cfg_mtx
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 7362951 commit 0688d3a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,6 @@ static int init_irq (ide_hwif_t *hwif)
irq_handler_t irq_handler;
int sa = 0;

mutex_lock(&ide_cfg_mtx);

irq_handler = hwif->host->irq_handler;
if (irq_handler == NULL)
irq_handler = ide_intr;
Expand Down Expand Up @@ -979,10 +977,8 @@ static int init_irq (ide_hwif_t *hwif)
printk(KERN_CONT " (serialized)");
printk(KERN_CONT "\n");

mutex_unlock(&ide_cfg_mtx);
return 0;
out_up:
mutex_unlock(&ide_cfg_mtx);
return 1;
}

Expand Down

0 comments on commit 0688d3a

Please sign in to comment.