OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0964a3d
)
[PATCH] v4l: saa7134 byteorder fix
author
Gerd Knorr
<kraxel@bytesex.org>
Fri, 24 Jun 2005 05:04:34 +0000
(22:04 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:06:36 +0000
(
00:06
-0700)
Fix byteorder bug in the saa7134 driver. With that ObviouslyCorrect[tm]
patch applied the driver reportly works on powerpc.
Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/saa7134/saa7134-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/saa7134/saa7134-core.c
b/drivers/media/video/saa7134/saa7134-core.c
index
d506caf
..
73bb560
100644
(file)
--- a/
drivers/media/video/saa7134/saa7134-core.c
+++ b/
drivers/media/video/saa7134/saa7134-core.c
@@
-340,7
+340,7
@@
int saa7134_pgtable_build(struct pci_dev *pci, struct saa7134_pgtable *pt,
ptr = pt->cpu + startpage;
for (i = 0; i < length; i++, list++)
for (p = 0; p * 4096 < list->length; p++, ptr++)
- *ptr =
sg_dma_address(list) - list->offset
;
+ *ptr =
cpu_to_le32(sg_dma_address(list) - list->offset)
;
return 0;
}