diff options
author | Tejun Heo <tj@kernel.org> | 2010-07-02 08:41:24 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-08-01 19:36:04 -0400 |
commit | 728e0eaf99631d197e5158e21b4a8c4335a39231 (patch) | |
tree | 4adba6f43f73ba4ae8894962a574efb1000ed79d /drivers/ata | |
parent | b429dd5998d6037e0057564f3894f56aff64d661 (diff) |
ata_generic: drop hard coded DMA force logic for CENATEK
Commit 1529c69adc (ata_generic: implement ATA_GEN_* flags and force
enable DMA on MBP 7,1) implemented ATA_GEN_FORCE_DMA for forcing DMA
mode and applied it to CENATEK but forgot to remove the original hard
coded logic. This is removal of redundant logic and doesn't affect
correctness.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ata_generic.c | 4 |
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; |