summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/mantis/mantis_dma.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2009-12-03 08:47:11 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 13:55:30 (GMT)
commit417036844823313901d7f7d7b963f215cc3b0641 (patch)
tree3f62df8b931289ce84397441f368ac5640e2d6c9 /drivers/media/dvb/mantis/mantis_dma.c
parent8154bad4c488c1a23fb504a6e751d71a39733b76 (diff)
downloadlinux-fsl-qoriq-417036844823313901d7f7d7b963f215cc3b0641.tar.xz
V4L/DVB (13716): [Mantis] Bug: incorrect byte swap
You know, the worst endianness errors are not the cases where people forget to byte-swap, but the cases where they either byte-swap with the wrong size, or byte-swap when they shouldn't have done so at all. Those ones defeat the casual reader of the code. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_dma.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/mantis/mantis_dma.c b/drivers/media/dvb/mantis/mantis_dma.c
index ea23a89..f685992 100644
--- a/drivers/media/dvb/mantis/mantis_dma.c
+++ b/drivers/media/dvb/mantis/mantis_dma.c
@@ -189,7 +189,7 @@ void mantis_dma_start(struct mantis_pci *mantis)
dprintk(verbose, MANTIS_DEBUG, 1, "Mantis Start DMA engine");
mantis_risc_program(mantis);
- mmwrite(cpu_to_le32(mantis->risc_dma), MANTIS_RISC_START);
+ mmwrite(mantis->risc_dma, MANTIS_RISC_START);
mmwrite(mmread(MANTIS_GPIF_ADDR) | MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR);
mmwrite(0, MANTIS_DMA_CTL);