diff options
author | Michael Hunold <devnull@localhost> | 2004-06-18 06:09:44 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2004-06-18 06:09:44 +0000 |
commit | 0483df8df087b5a6716c2cf5026a501bd91a8b81 (patch) | |
tree | 5e148e5745eada326a69310ae12345970428452d /linux/drivers/media | |
parent | df6a2093ab61eeba3d514205437e8c156787bf3f (diff) | |
download | mediapointer-dvb-s2-0483df8df087b5a6716c2cf5026a501bd91a8b81.tar.gz mediapointer-dvb-s2-0483df8df087b5a6716c2cf5026a501bd91a8b81.tar.bz2 |
- apply cpu_to_le32() to all write operations concerning page tables, necessary to support big-endian machines (thanks to Wolfram Joost)
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/common/saa7146_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } /* |