Skip to content

Commit

Permalink
ide: fix handling of busy I/O resources in probe_hwif()
Browse files Browse the repository at this point in the history
It could be that I/O resources are busy because some other host driver
has already claimed them so don't unregister the devices.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent 7616695 commit cf7125a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,18 +727,7 @@ static void probe_hwif(ide_hwif_t *hwif)

if ((hwif->chipset != ide_4drives || !hwif->mate || !hwif->mate->present) &&
(ide_hwif_request_regions(hwif))) {
u16 msgout = 0;
for (unit = 0; unit < MAX_DRIVES; ++unit) {
ide_drive_t *drive = &hwif->drives[unit];
if (drive->present) {
drive->present = 0;
printk(KERN_ERR "%s: ERROR, PORTS ALREADY IN USE\n",
drive->name);
msgout = 1;
}
}
if (!msgout)
printk(KERN_ERR "%s: ports already in use, skipping probe\n",
printk(KERN_ERR "%s: ports already in use, skipping probe\n",
hwif->name);
return;
}
Expand Down

0 comments on commit cf7125a

Please sign in to comment.