Explorar o código

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>
Bartlomiej Zolnierkiewicz %!s(int64=17) %!d(string=hai) anos
pai
achega
edc74b247b
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      drivers/ide/ide-generic.c

+ 1 - 7
drivers/ide/ide-generic.c

@@ -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) {
-				idx[i] = 0xff;
+			if (hwif == NULL)
 				continue;
 				continue;
-			}
 
 
 			hwif->chipset = ide_generic;
 			hwif->chipset = ide_generic;