ide-generic: probing fix

* Don't skip probing IDE port if the corresponding ide_hwifs[] slot
  is already occupied.

* Remove duplicate idx[i] assignment.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 73dc532b
...@@ -118,15 +118,9 @@ static int __init ide_generic_init(void) ...@@ -118,15 +118,9 @@ static int __init ide_generic_init(void)
continue; continue;
} }
/*
* Skip probing if the corresponding
* slot is already occupied.
*/
hwif = ide_find_port(); hwif = ide_find_port();
if (hwif == NULL || hwif->index != i) { if (hwif == NULL)
idx[i] = 0xff;
continue; continue;
}
hwif->chipset = ide_generic; hwif->chipset = ide_generic;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment