From 0483df8df087b5a6716c2cf5026a501bd91a8b81 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 18 Jun 2004 06:09:44 +0000 Subject: - apply cpu_to_le32() to all write operations concerning page tables, necessary to support big-endian machines (thanks to Wolfram Joost) --- linux/drivers/media/common/saa7146_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c index 6c5b701c8..0e0b7b4d1 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/common/saa7146_video.c @@ -641,7 +641,7 @@ static int saa7146_pgtable_build(struct saa7146_dev *dev, struct saa7146_buf *bu /* walk all pages, copy all page addresses to ptr1 */ for (i = 0; i < length; i++, list++) { for (p = 0; p * 4096 < list->length; p++, ptr1++) { - *ptr1 = sg_dma_address(list) - list->offset; + *ptr1 = cpu_to_le32(sg_dma_address(list) - list->offset); } } /* -- cgit v1.2.3