aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/ata_generic.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index 7107a6929deb..cc5f7726bde7 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -54,7 +54,6 @@ static int generic_set_mode(struct ata_link *link, struct ata_device **unused)
54 const struct pci_device_id *id = ap->host->private_data; 54 const struct pci_device_id *id = ap->host->private_data;
55 int dma_enabled = 0; 55 int dma_enabled = 0;
56 struct ata_device *dev; 56 struct ata_device *dev;
57 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
58 57
59 if (id->driver_data & ATA_GEN_FORCE_DMA) { 58 if (id->driver_data & ATA_GEN_FORCE_DMA) {
60 dma_enabled = 0xff; 59 dma_enabled = 0xff;
@@ -63,9 +62,6 @@ static int generic_set_mode(struct ata_link *link, struct ata_device **unused)
63 dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); 62 dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS);
64 } 63 }
65 64
66 if (pdev->vendor == PCI_VENDOR_ID_CENATEK)
67 dma_enabled = 0xFF;
68
69 ata_for_each_dev(dev, link, ENABLED) { 65 ata_for_each_dev(dev, link, ENABLED) {
70 /* We don't really care */ 66 /* We don't really care */
71 dev->pio_mode = XFER_PIO_0; 67 dev->pio_mode = XFER_PIO_0;