aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/jmicron.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/jmicron.c')
-rw-r--r--drivers/ide/pci/jmicron.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/ide/pci/jmicron.c b/drivers/ide/pci/jmicron.c
index e4a4f1fb5be7..bb893ffcc987 100644
--- a/drivers/ide/pci/jmicron.c
+++ b/drivers/ide/pci/jmicron.c
@@ -114,8 +114,8 @@ static void __devinit init_hwif_jmicron(ide_hwif_t *hwif)
114 hwif->drives[0].autotune = 1; 114 hwif->drives[0].autotune = 1;
115 hwif->drives[1].autotune = 1; 115 hwif->drives[1].autotune = 1;
116 116
117 if (!hwif->dma_base) 117 if (hwif->dma_base == 0)
118 goto fallback; 118 return;
119 119
120 hwif->atapi_dma = 1; 120 hwif->atapi_dma = 1;
121 hwif->ultra_mask = 0x7f; 121 hwif->ultra_mask = 0x7f;
@@ -123,14 +123,6 @@ static void __devinit init_hwif_jmicron(ide_hwif_t *hwif)
123 123
124 if (hwif->cbl != ATA_CBL_PATA40_SHORT) 124 if (hwif->cbl != ATA_CBL_PATA40_SHORT)
125 hwif->cbl = ata66_jmicron(hwif); 125 hwif->cbl = ata66_jmicron(hwif);
126
127 hwif->autodma = 1;
128 hwif->drives[0].autodma = hwif->autodma;
129 hwif->drives[1].autodma = hwif->autodma;
130 return;
131fallback:
132 hwif->autodma = 0;
133 return;
134} 126}
135 127
136static ide_pci_device_t jmicron_chipset __devinitdata = { 128static ide_pci_device_t jmicron_chipset __devinitdata = {