diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:34 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 18:46:34 -0400 |
commit | daaad24fdc2ed7cd45d9a09abdec46c0d34031a1 (patch) | |
tree | db51d11c106663e5bf90fecf7303af1234b41e42 /drivers/ide | |
parent | ffd4f6f0eed0423652826f3775077d11918b4180 (diff) |
cmd640: cleanup setup_device_ptrs()
This loop is no longer needed.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/pci/cmd640.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/ide/pci/cmd640.c b/drivers/ide/pci/cmd640.c index 58a95f62e383..6b8e4061d3c4 100644 --- a/drivers/ide/pci/cmd640.c +++ b/drivers/ide/pci/cmd640.c | |||
@@ -409,19 +409,9 @@ static void __init check_prefetch (unsigned int index) | |||
409 | */ | 409 | */ |
410 | static void __init setup_device_ptrs (void) | 410 | static void __init setup_device_ptrs (void) |
411 | { | 411 | { |
412 | unsigned int i; | 412 | cmd_hwif0 = &ide_hwifs[0]; |
413 | cmd_hwif1 = &ide_hwifs[1]; | ||
413 | 414 | ||
414 | cmd_hwif0 = &ide_hwifs[0]; /* default, if not found below */ | ||
415 | cmd_hwif1 = &ide_hwifs[1]; /* default, if not found below */ | ||
416 | for (i = 0; i < MAX_HWIFS; i++) { | ||
417 | ide_hwif_t *hwif = &ide_hwifs[i]; | ||
418 | if (hwif->chipset == ide_unknown) { | ||
419 | if (hwif->io_ports[IDE_DATA_OFFSET] == 0x1f0) | ||
420 | cmd_hwif0 = hwif; | ||
421 | else if (hwif->io_ports[IDE_DATA_OFFSET] == 0x170) | ||
422 | cmd_hwif1 = hwif; | ||
423 | } | ||
424 | } | ||
425 | cmd_drives[0] = &cmd_hwif0->drives[0]; | 415 | cmd_drives[0] = &cmd_hwif0->drives[0]; |
426 | cmd_drives[1] = &cmd_hwif0->drives[1]; | 416 | cmd_drives[1] = &cmd_hwif0->drives[1]; |
427 | cmd_drives[2] = &cmd_hwif1->drives[0]; | 417 | cmd_drives[2] = &cmd_hwif1->drives[0]; |