aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 21672001a8ad..873471dfb9b3 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -727,18 +727,7 @@ static void probe_hwif(ide_hwif_t *hwif)
727 727
728 if ((hwif->chipset != ide_4drives || !hwif->mate || !hwif->mate->present) && 728 if ((hwif->chipset != ide_4drives || !hwif->mate || !hwif->mate->present) &&
729 (ide_hwif_request_regions(hwif))) { 729 (ide_hwif_request_regions(hwif))) {
730 u16 msgout = 0; 730 printk(KERN_ERR "%s: ports already in use, skipping probe\n",
731 for (unit = 0; unit < MAX_DRIVES; ++unit) {
732 ide_drive_t *drive = &hwif->drives[unit];
733 if (drive->present) {
734 drive->present = 0;
735 printk(KERN_ERR "%s: ERROR, PORTS ALREADY IN USE\n",
736 drive->name);
737 msgout = 1;
738 }
739 }
740 if (!msgout)
741 printk(KERN_ERR "%s: ports already in use, skipping probe\n",
742 hwif->name); 731 hwif->name);
743 return; 732 return;
744 } 733 }