trm290: trm290_dma_setup() fix
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:32 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:32 +0000 (12:46 +0100)
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>
drivers/ide/trm290.c

index 1c09e549c423ca06765e127ff91f73cab73f4716..e8279f32f9a232afb1f7a30ba0b6fde7c4361ed1 100644 (file)
@@ -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;