diff options
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index cf5897f5533f..c0505e2dfc2e 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -566,9 +566,12 @@ EXPORT_SYMBOL_GPL(ide_allocate_dma_engine); | |||
566 | 566 | ||
567 | int ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd) | 567 | int ide_dma_prepare(ide_drive_t *drive, struct ide_cmd *cmd) |
568 | { | 568 | { |
569 | const struct ide_dma_ops *dma_ops = drive->hwif->dma_ops; | ||
570 | |||
569 | if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 || | 571 | if ((drive->dev_flags & IDE_DFLAG_USING_DMA) == 0 || |
572 | (dma_ops->dma_check && dma_ops->dma_check(drive, cmd)) || | ||
570 | ide_build_sglist(drive, cmd) == 0 || | 573 | ide_build_sglist(drive, cmd) == 0 || |
571 | drive->hwif->dma_ops->dma_setup(drive, cmd)) | 574 | dma_ops->dma_setup(drive, cmd)) |
572 | return 1; | 575 | return 1; |
573 | return 0; | 576 | return 0; |
574 | } | 577 | } |