aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_scc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r--drivers/ata/pata_scc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c
index 2153def3f345..941b72bec836 100644
--- a/drivers/ata/pata_scc.c
+++ b/drivers/ata/pata_scc.c
@@ -636,9 +636,11 @@ static int scc_std_softreset (struct ata_port *ap, unsigned int *classes,
636 } 636 }
637 637
638 /* determine by signature whether we have ATA or ATAPI devices */ 638 /* determine by signature whether we have ATA or ATAPI devices */
639 classes[0] = ata_dev_try_classify(ap, 0, &err); 639 classes[0] = ata_dev_try_classify(&ap->link.device[0],
640 devmask & (1 << 0), &err);
640 if (slave_possible && err != 0x81) 641 if (slave_possible && err != 0x81)
641 classes[1] = ata_dev_try_classify(ap, 1, &err); 642 classes[1] = ata_dev_try_classify(&ap->link.device[1],
643 devmask & (1 << 1), &err);
642 644
643 out: 645 out:
644 DPRINTK("EXIT, classes[0]=%u [1]=%u\n", classes[0], classes[1]); 646 DPRINTK("EXIT, classes[0]=%u [1]=%u\n", classes[0], classes[1]);