]> err.no Git - linux-2.6/commitdiff
x86: use dma_length in i386
authorGlauber Costa <gcosta@redhat.com>
Tue, 8 Apr 2008 16:20:48 +0000 (13:20 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:57 +0000 (19:19 +0200)
This is done to get the code closer to x86_64.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-base_32.c
include/asm-x86/scatterlist.h

index 7caf5c211f235f80b6f5dea3049a91c7bba24859..837bbe91043e57b3c9b6b76bba75fb6abc8d3d6c 100644 (file)
@@ -24,6 +24,7 @@ static int pci32_dma_map_sg(struct device *dev, struct scatterlist *sglist,
                BUG_ON(!sg_page(sg));
 
                sg->dma_address = sg_phys(sg);
+               sg->dma_length = sg->length;
        }
 
        flush_write_buffers();
index d13c197866d627daa572c6928034e639dc2b17f2..c0432061f81a0f0609e8b115e3c23e4ff6cdcbb4 100644 (file)
@@ -11,9 +11,7 @@ struct scatterlist {
        unsigned int    offset;
        unsigned int    length;
        dma_addr_t      dma_address;
-#ifdef CONFIG_X86_64
        unsigned int    dma_length;
-#endif
 };
 
 #define ARCH_HAS_SG_CHAIN