Skip to content

Commit

Permalink
[PATCH] v4l: saa7134 byteorder fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerd Knorr authored and Linus Torvalds committed Jun 24, 2005
1 parent 0964a3d commit a20758f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/saa7134/saa7134-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a20758f

Please sign in to comment.