aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/tc86c001.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/tc86c001.c')
-rw-r--r--drivers/ide/pci/tc86c001.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/drivers/ide/pci/tc86c001.c b/drivers/ide/pci/tc86c001.c
index 840415d68d38..de62db576adc 100644
--- a/drivers/ide/pci/tc86c001.c
+++ b/drivers/ide/pci/tc86c001.c
@@ -162,17 +162,6 @@ static int tc86c001_busproc(ide_drive_t *drive, int state)
162 return 0; 162 return 0;
163} 163}
164 164
165static int tc86c001_config_drive_xfer_rate(ide_drive_t *drive)
166{
167 if (ide_tune_dma(drive))
168 return 0;
169
170 if (ide_use_fast_pio(drive))
171 ide_set_max_pio(drive);
172
173 return -1;
174}
175
176static void __devinit init_hwif_tc86c001(ide_hwif_t *hwif) 165static void __devinit init_hwif_tc86c001(ide_hwif_t *hwif)
177{ 166{
178 unsigned long sc_base = pci_resource_start(hwif->pci_dev, 5); 167 unsigned long sc_base = pci_resource_start(hwif->pci_dev, 5);
@@ -213,7 +202,6 @@ static void __devinit init_hwif_tc86c001(ide_hwif_t *hwif)
213 hwif->ultra_mask = 0x1f; 202 hwif->ultra_mask = 0x1f;
214 hwif->mwdma_mask = 0x07; 203 hwif->mwdma_mask = 0x07;
215 204
216 hwif->ide_dma_check = &tc86c001_config_drive_xfer_rate;
217 hwif->dma_start = &tc86c001_dma_start; 205 hwif->dma_start = &tc86c001_dma_start;
218 206
219 if (hwif->cbl != ATA_CBL_PATA40_SHORT) { 207 if (hwif->cbl != ATA_CBL_PATA40_SHORT) {
@@ -224,10 +212,6 @@ static void __devinit init_hwif_tc86c001(ide_hwif_t *hwif)
224 scr1 = hwif->INW(sc_base + 0x00); 212 scr1 = hwif->INW(sc_base + 0x00);
225 hwif->cbl = (scr1 & 0x2000) ? ATA_CBL_PATA40 : ATA_CBL_PATA80; 213 hwif->cbl = (scr1 & 0x2000) ? ATA_CBL_PATA40 : ATA_CBL_PATA80;
226 } 214 }
227
228 if (!noautodma)
229 hwif->autodma = 1;
230 hwif->drives[0].autodma = hwif->drives[1].autodma = hwif->autodma;
231} 215}
232 216
233static unsigned int __devinit init_chipset_tc86c001(struct pci_dev *dev, 217static unsigned int __devinit init_chipset_tc86c001(struct pci_dev *dev,
@@ -256,9 +240,8 @@ static int __devinit tc86c001_init_one(struct pci_dev *dev,
256 return ide_setup_pci_device(dev, &tc86c001_chipset); 240 return ide_setup_pci_device(dev, &tc86c001_chipset);
257} 241}
258 242
259static struct pci_device_id tc86c001_pci_tbl[] = { 243static const struct pci_device_id tc86c001_pci_tbl[] = {
260 { PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE, 244 { PCI_VDEVICE(TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE), 0 },
261 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
262 { 0, } 245 { 0, }
263}; 246};
264MODULE_DEVICE_TABLE(pci, tc86c001_pci_tbl); 247MODULE_DEVICE_TABLE(pci, tc86c001_pci_tbl);