libata: fix IDENTIFY order in ata_bus_probe()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 2 Apr 2008 01:35:15 +0000 (10:35 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 4 Apr 2008 06:43:33 +0000 (02:43 -0400)
Commit f58229f8060055b08b34008ea08f31de1e2f003c accidentally made
ata_bus_probe() not use reverse order probing.  Fix it.

There currently isn't any PATA driver which uses obsolete
ata_bus_probe() path, so this patch is mainly for correctness.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c

index 48519887f94a021caa2e91e9287ad1db491e9c29..2db5c9c9ca10b00b327bf1297daaaec12bc3629c 100644 (file)
@@ -2660,7 +2660,7 @@ int ata_bus_probe(struct ata_port *ap)
           specific sequence bass-ackwards so that PDIAG- is released by
           the slave device */
 
-       ata_link_for_each_dev(dev, &ap->link) {
+       ata_link_for_each_dev_reverse(dev, &ap->link) {
                if (tries[dev->devno])
                        dev->class = classes[dev->devno];