diff options
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index b58eb792172e..a4b65b321f51 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -843,7 +843,7 @@ static void ide_port_tune_devices(ide_hwif_t *hwif) | |||
843 | 843 | ||
844 | drive->nice1 = 1; | 844 | drive->nice1 = 1; |
845 | 845 | ||
846 | if (hwif->dma_host_set) | 846 | if (hwif->dma_ops) |
847 | ide_set_dma(drive); | 847 | ide_set_dma(drive); |
848 | } | 848 | } |
849 | } | 849 | } |
@@ -1390,7 +1390,8 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port, | |||
1390 | hwif->swdma_mask = 0; | 1390 | hwif->swdma_mask = 0; |
1391 | hwif->mwdma_mask = 0; | 1391 | hwif->mwdma_mask = 0; |
1392 | hwif->ultra_mask = 0; | 1392 | hwif->ultra_mask = 0; |
1393 | } | 1393 | } else if (d->dma_ops) |
1394 | hwif->dma_ops = d->dma_ops; | ||
1394 | } | 1395 | } |
1395 | 1396 | ||
1396 | if (d->host_flags & IDE_HFLAG_RQSIZE_256) | 1397 | if (d->host_flags & IDE_HFLAG_RQSIZE_256) |