Commit 6898dd58 authored by Randy Dunlap's avatar Randy Dunlap Committed by Mauro Carvalho Chehab

media: media/platform: fsl-viu.c: fix build for MICROBLAZE

arch/microblaze/ defines out_be32() and in_be32(), so don't do that
again in the driver source.

Fixes these build warnings:

../drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined
../arch/microblaze/include/asm/io.h:50: note: this is the location of the previous definition
../drivers/media/platform/fsl-viu.c:37: warning: "in_be32" redefined
../arch/microblaze/include/asm/io.h:53: note: this is the location of the previous definition

Fixes: 29d75068 ("media: fsl-viu: allow building it with COMPILE_TEST")
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 8fb294ca
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#define VIU_VERSION "0.5.1" #define VIU_VERSION "0.5.1"
/* Allow building this driver with COMPILE_TEST */ /* Allow building this driver with COMPILE_TEST */
#ifndef CONFIG_PPC #if !defined(CONFIG_PPC) && !defined(CONFIG_MICROBLAZE)
#define out_be32(v, a) iowrite32be(a, (void __iomem *)v) #define out_be32(v, a) iowrite32be(a, (void __iomem *)v)
#define in_be32(a) ioread32be((void __iomem *)a) #define in_be32(a) ioread32be((void __iomem *)a)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment