* [PATCH] scatterlist fallout: frv
@ 2007-10-27 18:23 Al Viro
2007-10-29 13:05 ` David Howells
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2007-10-27 18:23 UTC (permalink / raw)
To: Linus Torvalds; +Cc: dhowells, axboe, linux-kernel
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c
index 671ce1e..662f7b1 100644
--- a/arch/frv/mb93090-mb00/pci-dma.c
+++ b/arch/frv/mb93090-mb00/pci-dma.c
@@ -15,6 +15,7 @@
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/highmem.h>
+#include <linux/scatterlist.h>
#include <asm/io.h>
void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)
@@ -86,7 +87,7 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
dampr2 = __get_DAMPR(2);
for (i = 0; i < nents; i++) {
- vaddr = kmap_atomic(sg[i].page, __KM_CACHE);
+ vaddr = kmap_atomic(sg_page(&sg[i]), __KM_CACHE);
frv_dcache_writeback((unsigned long) vaddr,
(unsigned long) vaddr + PAGE_SIZE);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-29 13:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 18:23 [PATCH] scatterlist fallout: frv Al Viro
2007-10-29 13:05 ` David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox