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: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 187a6035
...@@ -27,7 +27,12 @@ ...@@ -27,7 +27,12 @@
#include <linux/via-core.h> #include <linux/via-core.h>
#include <linux/via-gpio.h> #include <linux/via-gpio.h>
#include <linux/via_i2c.h> #include <linux/via_i2c.h>
#ifdef CONFIG_X86
#include <asm/olpc.h> #include <asm/olpc.h>
#else
#define machine_is_olpc(x) 0
#endif
#include "via-camera.h" #include "via-camera.h"
......
...@@ -1437,7 +1437,7 @@ config FB_SIS_315 ...@@ -1437,7 +1437,7 @@ config FB_SIS_315
config FB_VIA config FB_VIA
tristate "VIA UniChrome (Pro) and Chrome9 display support" tristate "VIA UniChrome (Pro) and Chrome9 display support"
depends on FB && PCI && X86 && GPIOLIB && I2C depends on FB && PCI && GPIOLIB && I2C && (X86 || COMPILE_TEST)
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
......
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
#include <linux/console.h> #include <linux/console.h>
#include <linux/timer.h> #include <linux/timer.h>
#ifdef CONFIG_X86
#include <asm/olpc.h>
#else
#define machine_is_olpc(x) 0
#endif
#include "debug.h" #include "debug.h"
#include "viafbdev.h" #include "viafbdev.h"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
*/ */
#include <linux/via-core.h> #include <linux/via-core.h>
#include <asm/olpc.h>
#include "global.h" #include "global.h"
#include "via_clock.h" #include "via_clock.h"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <asm/olpc.h>
/* /*
* The default port config. * The default port config.
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/via-core.h> #include <linux/via-core.h>
#include <asm/olpc.h>
#include "via_clock.h" #include "via_clock.h"
#include "global.h" #include "global.h"
#include "debug.h" #include "debug.h"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/via-core.h> #include <linux/via-core.h>
#include <linux/via_i2c.h> #include <linux/via_i2c.h>
#include <asm/olpc.h>
#define _MASTER_FILE #define _MASTER_FILE
#include "global.h" #include "global.h"
......
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