media: platform: fix VIA_CAMERA dependencies
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 23 Apr 2020 14:46:07 +0000 (16:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 23 Apr 2020 14:47:53 +0000 (16:47 +0200)
As detected by a randconfig:

WARNING: unmet direct dependencies detected for VIDEO_OV7670
  Depends on [n]: MEDIA_SUPPORT [=y] && I2C [=y] && VIDEO_V4L2 [=n]
  Selected by [y]:
  - VIDEO_VIA_CAMERA [=y] && MEDIA_SUPPORT [=y] && MEDIA_PLATFORM_SUPPORT [=y] && V4L_PLATFORM_DRIVERS [=y] && FB_VIA [=y]

There's a missing dependency on VIDEO_V4L2 for VIA_CAMERA.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/Kconfig

index b1ac9c6c9cdbce5b060413ab8cda7ad403197b86..8110373fb0e9f6e34f6c25eeb2e0cb95f4b1e878 100644 (file)
@@ -14,7 +14,7 @@ source "drivers/media/platform/marvell-ccic/Kconfig"
 
 config VIDEO_VIA_CAMERA
        tristate "VIAFB camera controller support"
-       depends on FB_VIA
+       depends on FB_VIA && VIDEO_V4L2
        select VIDEOBUF2_DMA_SG
        select VIDEO_OV7670
        help