diff options
Diffstat (limited to 'drivers/ide/ns87415.c')
-rw-r--r-- | drivers/ide/ns87415.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ns87415.c b/drivers/ide/ns87415.c index d93c80016326..cf6d9a9c8a27 100644 --- a/drivers/ide/ns87415.c +++ b/drivers/ide/ns87415.c | |||
@@ -216,11 +216,11 @@ static int ns87415_dma_end(ide_drive_t *drive) | |||
216 | return (dma_stat & 7) != 4; | 216 | return (dma_stat & 7) != 4; |
217 | } | 217 | } |
218 | 218 | ||
219 | static int ns87415_dma_setup(ide_drive_t *drive) | 219 | static int ns87415_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) |
220 | { | 220 | { |
221 | /* select DMA xfer */ | 221 | /* select DMA xfer */ |
222 | ns87415_prepare_drive(drive, 1); | 222 | ns87415_prepare_drive(drive, 1); |
223 | if (!ide_dma_setup(drive)) | 223 | if (ide_dma_setup(drive, cmd) == 0) |
224 | return 0; | 224 | return 0; |
225 | /* DMA failed: select PIO xfer */ | 225 | /* DMA failed: select PIO xfer */ |
226 | ns87415_prepare_drive(drive, 0); | 226 | ns87415_prepare_drive(drive, 0); |