mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
73dc532bc1
commit
edc74b247b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user