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: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 73dc532b
......@@ -118,15 +118,9 @@ static int __init ide_generic_init(void)
continue;
}
/*
* Skip probing if the corresponding
* slot is already occupied.
*/
hwif = ide_find_port();
if (hwif == NULL || hwif->index != i) {
idx[i] = 0xff;
if (hwif == NULL)
continue;
}
hwif->chipset = ide_generic;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册