[media] tw68: drop bogus cpu_to_le32() call
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 4 Sep 2014 16:26:53 +0000 (13:26 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 8 Sep 2014 19:40:54 +0000 (16:40 -0300)
tw_writel maps to writel which maps to __raw_writel(__cpu_to_le32(b),addr).
So tw_writel already calls cpu_to_le32 and it shouldn't be called again
in the code.

Reported-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/tw68/tw68-video.c

index 498ead9a956db304fb494c52c786b44942b7caf9..5c94ac7c88d9e2e4ff0e636ed0de78634e35bb3f 100644 (file)
@@ -348,7 +348,7 @@ int tw68_video_start_dma(struct tw68_dev *dev, struct tw68_buf *buf)
         *  a new address can be set.
         */
        tw_clearl(TW68_DMAC, TW68_DMAP_EN);
-       tw_writel(TW68_DMAP_SA, cpu_to_le32(buf->dma));
+       tw_writel(TW68_DMAP_SA, buf->dma);
        /* Clear any pending interrupts */
        tw_writel(TW68_INTSTAT, dev->board_virqmask);
        /* Enable the risc engine and the fifo */
This page took 0.043493 seconds and 5 git commands to generate.