diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-05-15 12:41:10 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-05-15 12:41:10 +0200 |
commit | 598041f39f3b2c0327a44d8289d27bac35fe7b6a (patch) | |
tree | d5629f8452e6272ab3e586a097ebce7c7476a3ea /drivers/media | |
parent | 187a60358a90125e97671e6e4e5a1e412667bdab (diff) | |
download | linux-598041f39f3b2c0327a44d8289d27bac35fe7b6a.tar.gz linux-598041f39f3b2c0327a44d8289d27bac35fe7b6a.tar.bz2 linux-598041f39f3b2c0327a44d8289d27bac35fe7b6a.zip |
video: fbdev: via: allow COMPILE_TEST build
This patch allows viafb driver to be build on !X86 archs
using COMPILE_TEST config option.
Since via-camera driver (VIDEO_VIA_CAMERA) depends on viafb
it also needs a little fixup.
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/via-camera.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index e9a02639554b..1561d4219bd9 100644 --- a/drivers/media/platform/via-camera.c +++ b/drivers/media/platform/via-camera.c @@ -27,7 +27,12 @@ #include <linux/via-core.h> #include <linux/via-gpio.h> #include <linux/via_i2c.h> + +#ifdef CONFIG_X86 #include <asm/olpc.h> +#else +#define machine_is_olpc(x) 0 +#endif #include "via-camera.h" |