diff options
Diffstat (limited to 'drivers/ide/ppc/pmac.c')
-rw-r--r-- | drivers/ide/ppc/pmac.c | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 9e86406bf44b..1d25a3433008 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -1421,17 +1421,12 @@ static struct macio_driver pmac_ide_macio_driver = | |||
1421 | .resume = pmac_ide_macio_resume, | 1421 | .resume = pmac_ide_macio_resume, |
1422 | }; | 1422 | }; |
1423 | 1423 | ||
1424 | static struct pci_device_id pmac_ide_pci_match[] = { | 1424 | static const struct pci_device_id pmac_ide_pci_match[] = { |
1425 | { PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_UNI_N_ATA, | 1425 | { PCI_VDEVICE(APPLE, PCI_DEVICE_ID_APPLE_UNI_N_ATA), 0 }, |
1426 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 1426 | { PCI_VDEVICE(APPLE, PCI_DEVICE_ID_APPLE_IPID_ATA100), 0 }, |
1427 | { PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_IPID_ATA100, | 1427 | { PCI_VDEVICE(APPLE, PCI_DEVICE_ID_APPLE_K2_ATA100), 0 }, |
1428 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 1428 | { PCI_VDEVICE(APPLE, PCI_DEVICE_ID_APPLE_SH_ATA), 0 }, |
1429 | { PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_K2_ATA100, | 1429 | { PCI_VDEVICE(APPLE, PCI_DEVICE_ID_APPLE_IPID2_ATA), 0 }, |
1430 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | ||
1431 | { PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_SH_ATA, | ||
1432 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | ||
1433 | { PCI_VENDOR_ID_APPLE, PCI_DEVICE_ID_APPLE_IPID2_ATA, | ||
1434 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | ||
1435 | {}, | 1430 | {}, |
1436 | }; | 1431 | }; |
1437 | 1432 | ||
@@ -1579,19 +1574,6 @@ pmac_ide_destroy_dmatable (ide_drive_t *drive) | |||
1579 | } | 1574 | } |
1580 | 1575 | ||
1581 | /* | 1576 | /* |
1582 | * Check what is the best DMA timing setting for the drive and | ||
1583 | * call appropriate functions to apply it. | ||
1584 | */ | ||
1585 | static int | ||
1586 | pmac_ide_dma_check(ide_drive_t *drive) | ||
1587 | { | ||
1588 | if (ide_tune_dma(drive)) | ||
1589 | return 0; | ||
1590 | |||
1591 | return -1; | ||
1592 | } | ||
1593 | |||
1594 | /* | ||
1595 | * Prepare a DMA transfer. We build the DMA table, adjust the timings for | 1577 | * Prepare a DMA transfer. We build the DMA table, adjust the timings for |
1596 | * a read on KeyLargo ATA/66 and mark us as waiting for DMA completion | 1578 | * a read on KeyLargo ATA/66 and mark us as waiting for DMA completion |
1597 | */ | 1579 | */ |
@@ -1788,7 +1770,6 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
1788 | 1770 | ||
1789 | hwif->dma_off_quietly = &ide_dma_off_quietly; | 1771 | hwif->dma_off_quietly = &ide_dma_off_quietly; |
1790 | hwif->ide_dma_on = &__ide_dma_on; | 1772 | hwif->ide_dma_on = &__ide_dma_on; |
1791 | hwif->ide_dma_check = &pmac_ide_dma_check; | ||
1792 | hwif->dma_setup = &pmac_ide_dma_setup; | 1773 | hwif->dma_setup = &pmac_ide_dma_setup; |
1793 | hwif->dma_exec_cmd = &pmac_ide_dma_exec_cmd; | 1774 | hwif->dma_exec_cmd = &pmac_ide_dma_exec_cmd; |
1794 | hwif->dma_start = &pmac_ide_dma_start; | 1775 | hwif->dma_start = &pmac_ide_dma_start; |
@@ -1823,9 +1804,6 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
1823 | hwif->swdma_mask = 0x00; | 1804 | hwif->swdma_mask = 0x00; |
1824 | break; | 1805 | break; |
1825 | } | 1806 | } |
1826 | |||
1827 | hwif->autodma = 1; | ||
1828 | hwif->drives[1].autodma = hwif->drives[0].autodma = hwif->autodma; | ||
1829 | } | 1807 | } |
1830 | 1808 | ||
1831 | #endif /* CONFIG_BLK_DEV_IDEDMA_PMAC */ | 1809 | #endif /* CONFIG_BLK_DEV_IDEDMA_PMAC */ |