aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/atiixp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/atiixp.c')
-rw-r--r--drivers/ide/pci/atiixp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ide/pci/atiixp.c b/drivers/ide/pci/atiixp.c
index 648fdf30cdf4..b84185b4b68f 100644
--- a/drivers/ide/pci/atiixp.c
+++ b/drivers/ide/pci/atiixp.c
@@ -147,11 +147,7 @@ static void __devinit init_hwif_atiixp(ide_hwif_t *hwif)
147 hwif->set_pio_mode = &atiixp_set_pio_mode; 147 hwif->set_pio_mode = &atiixp_set_pio_mode;
148 hwif->set_dma_mode = &atiixp_set_dma_mode; 148 hwif->set_dma_mode = &atiixp_set_dma_mode;
149 149
150 if (!hwif->dma_base) 150 hwif->cable_detect = atiixp_cable_detect;
151 return;
152
153 if (hwif->cbl != ATA_CBL_PATA40_SHORT)
154 hwif->cbl = atiixp_cable_detect(hwif);
155} 151}
156 152
157static const struct ide_port_info atiixp_pci_info[] __devinitdata = { 153static const struct ide_port_info atiixp_pci_info[] __devinitdata = {