Merge tag 'ktest-v4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux-2.6-microblaze.git] / drivers / ata / pata_atiixp.c
index 49d705c..6c9aa95 100644 (file)
@@ -278,6 +278,11 @@ static int atiixp_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
        };
        const struct ata_port_info *ppi[] = { &info, &info };
 
+       /* SB600/700 don't have secondary port wired */
+       if ((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE) ||
+               (pdev->device == PCI_DEVICE_ID_ATI_IXP700_IDE))
+               ppi[1] = &ata_dummy_port_info;
+
        return ata_pci_bmdma_init_one(pdev, ppi, &atiixp_sht, NULL,
                                      ATA_HOST_PARALLEL_SCAN);
 }