ide: init_irq() doesn't need to hold ide_cfg_mtx

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 7362951b
...@@ -940,8 +940,6 @@ static int init_irq (ide_hwif_t *hwif) ...@@ -940,8 +940,6 @@ static int init_irq (ide_hwif_t *hwif)
irq_handler_t irq_handler; irq_handler_t irq_handler;
int sa = 0; int sa = 0;
mutex_lock(&ide_cfg_mtx);
irq_handler = hwif->host->irq_handler; irq_handler = hwif->host->irq_handler;
if (irq_handler == NULL) if (irq_handler == NULL)
irq_handler = ide_intr; irq_handler = ide_intr;
...@@ -979,10 +977,8 @@ static int init_irq (ide_hwif_t *hwif) ...@@ -979,10 +977,8 @@ static int init_irq (ide_hwif_t *hwif)
printk(KERN_CONT " (serialized)"); printk(KERN_CONT " (serialized)");
printk(KERN_CONT "\n"); printk(KERN_CONT "\n");
mutex_unlock(&ide_cfg_mtx);
return 0; return 0;
out_up: out_up:
mutex_unlock(&ide_cfg_mtx);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment