diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-22 14:19:19 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-22 14:19:19 +0000 |
commit | 5c51bb04555feb9d92e1a2f95d7f931d3c23dc3c (patch) | |
tree | 9095ac36017fbc930ddcdee54c270b3c875ed5ef /linux/drivers/media/common/saa7146_core.c | |
parent | a1f051bc9c24756e56651c89f2556edd677db014 (diff) | |
download | mediapointer-dvb-s2-5c51bb04555feb9d92e1a2f95d7f931d3c23dc3c.tar.gz mediapointer-dvb-s2-5c51bb04555feb9d92e1a2f95d7f931d3c23dc3c.tar.bz2 |
saa7146: ->cpu_addr and friends are little-endian
From: Al Viro <viro@ftp.linux.org.uk>
Annotations + stop saa7146_i2c from playing fast and loose with
reuse of ->cpu_addr for host-endian.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/common/saa7146_core.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/common/saa7146_core.c index 973989dd4..7bcf1eb14 100644 --- a/linux/drivers/media/common/saa7146_core.c +++ b/linux/drivers/media/common/saa7146_core.c @@ -233,7 +233,7 @@ void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt) int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt) { - u32 *cpu; + __le32 *cpu; dma_addr_t dma_addr; cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr); @@ -250,7 +250,7 @@ int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt) int saa7146_pgtable_build_single(struct pci_dev *pci, struct saa7146_pgtable *pt, struct scatterlist *list, int sglen ) { - u32 *ptr, fill; + __le32 *ptr, fill; int nr_pages = 0; int i,p; |