diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 23:22:39 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 23:22:39 +0100 |
commit | 0688d3a6ba9bf4e1df62ce627ad1daa0e2bf9148 (patch) | |
tree | fc4a5de4976c808583522a08f2decdcc36e839c6 /drivers/ide | |
parent | 7362951b4818763b6abaecd3f870739125145cc1 (diff) | |
download | linux-0688d3a6ba9bf4e1df62ce627ad1daa0e2bf9148.tar.gz linux-0688d3a6ba9bf4e1df62ce627ad1daa0e2bf9148.tar.bz2 linux-0688d3a6ba9bf4e1df62ce627ad1daa0e2bf9148.zip |
ide: init_irq() doesn't need to hold ide_cfg_mtx
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-probe.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 63f67e3c2555..5deb7e717333 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -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; @@ -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; } |