summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 12:46:32 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 12:46:32 +0100
commite2bcb2acb0b076fd0e3388ed0139eb6447fa9ae9 (patch)
treef6cadcca3a38a77f31b0671a9aef8273ad54107f
parentf7ef12482b17a015906cf74afe655e691b5fa2cb (diff)
trm290: trm290_dma_setup() fix
Re-map sg table if necessary (not that it really matters since DMA support is disabled currently). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/trm290.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/trm290.c b/drivers/ide/trm290.c
index 1c09e549c42..e8279f32f9a 100644
--- a/drivers/ide/trm290.c
+++ b/drivers/ide/trm290.c
@@ -198,6 +198,7 @@ static int trm290_dma_setup(ide_drive_t *drive)
rw = 2;
if (!(count = ide_build_dmatable(drive, rq))) {
+ ide_map_sg(drive, rq);
/* try PIO instead of DMA */
trm290_prepare_drive(drive, 0); /* select PIO xfer */
return 1;