]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide-generic: probing fix
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:56 +0000 (19:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:56 +0000 (19:55 +0200)
* 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>
drivers/ide/ide-generic.c

index bb9fc905d60ca9ffba960c32977915bc74a81818..a5c352abff59eca162b8f1fa9bec127d0ef62221 100644 (file)
@@ -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;