[PATCH] media: meye: Fix build COMPILE_TEST error

From: YueHaibing
Date: Sat Jun 15 2019 - 03:52:17 EST


If COMPILE_TEST is y and SONY_LAPTOP is m,
building fais as below:

drivers/media/pci/meye/meye.o: In function `meye_s_ctrl':
meye.c:(.text+0xafa): undefined reference to `sony_pic_camera_command'

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Fixes: 6159e12e1177 ("media: meye: allow building it with COMPILE_TEST on non-x86")
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
drivers/media/pci/meye/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/pci/meye/Kconfig b/drivers/media/pci/meye/Kconfig
index b0ba78a..b37da61 100644
--- a/drivers/media/pci/meye/Kconfig
+++ b/drivers/media/pci/meye/Kconfig
@@ -2,7 +2,8 @@
config VIDEO_MEYE
tristate "Sony Vaio Picturebook Motion Eye Video For Linux"
depends on PCI && VIDEO_V4L2
- depends on SONY_LAPTOP || COMPILE_TEST
+ depends on SONY_LAPTOP
+ depends on X86 || COMPILE_TEST
help
This is the video4linux driver for the Motion Eye camera found
in the Vaio Picturebook laptops. Please read the material in
--
2.7.4