diff options
Diffstat (limited to 'drivers/ide/arm/icside.c')
-rw-r--r-- | drivers/ide/arm/icside.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c index 61ce40d52f5f..aeed0205ce64 100644 --- a/drivers/ide/arm/icside.c +++ b/drivers/ide/arm/icside.c | |||
@@ -365,10 +365,7 @@ static int icside_dma_check(ide_drive_t *drive) | |||
365 | out: | 365 | out: |
366 | on = icside_set_speed(drive, xfer_mode); | 366 | on = icside_set_speed(drive, xfer_mode); |
367 | 367 | ||
368 | if (on) | 368 | return on ? 0 : -1; |
369 | return icside_dma_on(drive); | ||
370 | else | ||
371 | return icside_dma_off_quietly(drive); | ||
372 | } | 369 | } |
373 | 370 | ||
374 | static int icside_dma_end(ide_drive_t *drive) | 371 | static int icside_dma_end(ide_drive_t *drive) |