diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-11-13 22:09:15 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-11-13 22:09:15 +0100 |
commit | 34c69b601b2ec8fc8ff6657a547ce3865d58e220 (patch) | |
tree | eddcf5c10d212612b0f381f9a2d7e9606c60eadc /drivers/ide/cris | |
parent | c1f50cbb06363b36700c0a679a5bd3ddef0a97b6 (diff) | |
download | linux-3.10-34c69b601b2ec8fc8ff6657a547ce3865d58e220.tar.gz linux-3.10-34c69b601b2ec8fc8ff6657a547ce3865d58e220.tar.bz2 linux-3.10-34c69b601b2ec8fc8ff6657a547ce3865d58e220.zip |
ide: don't BUG() on unsupported transfer modes
Fix ide-cris, cs5530, sc1200 and sis5513 host drivers to just return instead
of OOPS-ing for unsupported modes in ->set_dma_mode methods.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/cris')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index e196aefa207..7f5bc2ee6c7 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c @@ -748,8 +748,7 @@ static void cris_set_dma_mode(ide_drive_t *drive, const u8 speed) hold = ATA_DMA2_HOLD; break; default: - BUG(); - break; + return; } if (speed >= XFER_UDMA_0) |