summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-04-08 13:20:48 -0300
committerIngo Molnar <mingo@elte.hu>2008-04-19 19:19:57 +0200
commitd741bde26dc3444eaeb269051d3f0b623b24de13 (patch)
tree9a0c5610958c938f0b9f6bd5e12df005399dcf5b /arch
parent5b3e5b7273435f8a7f83d3556a09adfd6f247e36 (diff)
x86: use dma_length in i386
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/pci-base_32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-base_32.c b/arch/x86/kernel/pci-base_32.c
index 7caf5c211f23..837bbe91043e 100644
--- a/arch/x86/kernel/pci-base_32.c
+++ b/arch/x86/kernel/pci-base_32.c
@@ -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();