[media] mipi-csis: make sparse happy
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 22:05:46 +0000 (19:05 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 22:05:46 +0000 (19:05 -0300)
Fix the namespace issue that causes this warning:

drivers/media/platform/exynos4-is/mipi-csis.c:709:17: warning: incorrect type in argument 2 (different address spaces)
drivers/media/platform/exynos4-is/mipi-csis.c:709:17:    expected void const *<noident>
drivers/media/platform/exynos4-is/mipi-csis.c:709:17:    got void [noderef] <asn:2>*

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/exynos4-is/mipi-csis.c

index d74e1bec3d867b608c4c6a70039c484b833f6599..4b85105dc159b736f37b6c44fe769298e141140d 100644 (file)
@@ -706,7 +706,8 @@ static irqreturn_t s5pcsis_irq_handler(int irq, void *dev_id)
                else
                        offset = S5PCSIS_PKTDATA_ODD;
 
-               memcpy(pktbuf->data, state->regs + offset, pktbuf->len);
+               memcpy(pktbuf->data, (u8 __force *)state->regs + offset,
+                      pktbuf->len);
                pktbuf->data = NULL;
                rmb();
        }