diff options
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index f5ce22c38f82..cc5801399467 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -144,7 +144,7 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd) | |||
144 | local_irq_enable(); | 144 | local_irq_enable(); |
145 | ide_fix_driveid(id); | 145 | ide_fix_driveid(id); |
146 | 146 | ||
147 | #if defined (CONFIG_SCSI_EATA_DMA) || defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) | 147 | #if defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) |
148 | /* | 148 | /* |
149 | * EATA SCSI controllers do a hardware ATA emulation: | 149 | * EATA SCSI controllers do a hardware ATA emulation: |
150 | * Ignore them if there is a driver for them available. | 150 | * Ignore them if there is a driver for them available. |
@@ -154,7 +154,7 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd) | |||
154 | printk("%s: EATA SCSI HBA %.10s\n", drive->name, id->model); | 154 | printk("%s: EATA SCSI HBA %.10s\n", drive->name, id->model); |
155 | goto err_misc; | 155 | goto err_misc; |
156 | } | 156 | } |
157 | #endif /* CONFIG_SCSI_EATA_DMA || CONFIG_SCSI_EATA_PIO */ | 157 | #endif /* CONFIG_SCSI_EATA || CONFIG_SCSI_EATA_PIO */ |
158 | 158 | ||
159 | /* | 159 | /* |
160 | * WIN_IDENTIFY returns little-endian info, | 160 | * WIN_IDENTIFY returns little-endian info, |
@@ -1025,7 +1025,7 @@ static int init_irq (ide_hwif_t *hwif) | |||
1025 | BUG_ON(irqs_disabled()); | 1025 | BUG_ON(irqs_disabled()); |
1026 | BUG_ON(hwif == NULL); | 1026 | BUG_ON(hwif == NULL); |
1027 | 1027 | ||
1028 | down(&ide_cfg_sem); | 1028 | mutex_lock(&ide_cfg_mtx); |
1029 | hwif->hwgroup = NULL; | 1029 | hwif->hwgroup = NULL; |
1030 | #if MAX_HWIFS > 1 | 1030 | #if MAX_HWIFS > 1 |
1031 | /* | 1031 | /* |
@@ -1154,7 +1154,7 @@ static int init_irq (ide_hwif_t *hwif) | |||
1154 | printk(" (%sed with %s)", | 1154 | printk(" (%sed with %s)", |
1155 | hwif->sharing_irq ? "shar" : "serializ", match->name); | 1155 | hwif->sharing_irq ? "shar" : "serializ", match->name); |
1156 | printk("\n"); | 1156 | printk("\n"); |
1157 | up(&ide_cfg_sem); | 1157 | mutex_unlock(&ide_cfg_mtx); |
1158 | return 0; | 1158 | return 0; |
1159 | out_unlink: | 1159 | out_unlink: |
1160 | spin_lock_irq(&ide_lock); | 1160 | spin_lock_irq(&ide_lock); |
@@ -1177,7 +1177,7 @@ out_unlink: | |||
1177 | } | 1177 | } |
1178 | spin_unlock_irq(&ide_lock); | 1178 | spin_unlock_irq(&ide_lock); |
1179 | out_up: | 1179 | out_up: |
1180 | up(&ide_cfg_sem); | 1180 | mutex_unlock(&ide_cfg_mtx); |
1181 | return 1; | 1181 | return 1; |
1182 | } | 1182 | } |
1183 | 1183 | ||