Skip to contentSkip to conversation

V4L2: soc_camera: Add run-time dependencies to sh_mobile drivers

PATCH New Jean Delvare 1 participant 1 message May 26, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 V4L2: soc_camera: Add run-time dependencies to sh_mobile drivers

The sh_mobile_ceu_camera and sh_mobile_csi2 drivers are only useful on SuperH and shmobile unless build testing.

Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/platform/soc_camera/Kconfig |    2 ++
 1 file changed, 2 insertions(+)
drivers/media/platform/soc_camera/Kconfig +2 -0
@@ -56,12 +56,14 @@ config VIDEO_RCAR_VIN
 config VIDEO_SH_MOBILE_CSI2
 	tristate "SuperH Mobile MIPI CSI-2 Interface driver"
 	depends on VIDEO_DEV && SOC_CAMERA && HAVE_CLK
+	depends on ARCH_SHMOBILE || SUPERH || COMPILE_TEST
 	---help---
 	  This is a v4l2 driver for the SuperH MIPI CSI-2 Interface
 
 config VIDEO_SH_MOBILE_CEU
 	tristate "SuperH Mobile CEU Interface driver"
 	depends on VIDEO_DEV && SOC_CAMERA && HAS_DMA && HAVE_CLK
+	depends on ARCH_SHMOBILE || SUPERH || COMPILE_TEST
 	select VIDEOBUF2_DMA_CONTIG
 	select SOC_CAMERA_SCALE_CROP
 	---help---
Signature · 2 lines
Jean Delvare
SUSE L3 Support