[PATCH] v4l: saa7134 byteorder fix

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>
This commit is contained in:
Gerd Knorr 2005-06-23 22:04:34 -07:00 committed by Linus Torvalds
parent 0964a3d3f1
commit a20758fa32
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}