Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82164
b: refs/heads/master
c: e84e7ea
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent aac7653 commit 99e2693
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 139ddfcab50e5eabcc88341c8743a990ac1be6a2
refs/heads/master: e84e7ea7c4d0a6d7fbaecab2d85df0298cd9e3b4
15 changes: 12 additions & 3 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,13 @@ static int ide_probe_port(ide_hwif_t *hwif)
if (!hwif->present)
return -ENODEV;

return 0;
}

static void ide_port_tune_devices(ide_hwif_t *hwif)
{
int unit;

for (unit = 0; unit < MAX_DRIVES; unit++) {
ide_drive_t *drive = &hwif->drives[unit];

Expand Down Expand Up @@ -827,8 +834,6 @@ static int ide_probe_port(ide_hwif_t *hwif)
else
drive->no_io_32bit = drive->id->dword_io ? 1 : 0;
}

return 0;
}

#if MAX_HWIFS > 1
Expand Down Expand Up @@ -1309,8 +1314,12 @@ int ide_device_add_all(u8 *idx)
continue;
}

if (ide_probe_port(hwif) < 0)
if (ide_probe_port(hwif) < 0) {
ide_hwif_release_regions(hwif);
continue;
}

ide_port_tune_devices(hwif);
}

for (i = 0; i < MAX_HWIFS; i++) {
Expand Down

0 comments on commit 99e2693

Please sign in to comment.