]> git.itanic.dy.fi Git - linux-stable/commitdiff
media: nuvoton: VIDEO_NPCM_VCD_ECE should depend on ARCH_NPCM
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 25 Oct 2023 08:37:11 +0000 (10:37 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 27 Oct 2023 09:44:19 +0000 (11:44 +0200)
The Nuvoton NPCM Video Capture/Differentiation Engine (VCD) and Encoding
Compression Engine (ECE) are only present on Nuvoton NPCM SoCs.  Hence
add a dependency on ARCH_NPCM, to prevent asking the user about these
drivers when configuring a kernel without  Nuvoton NPCM Architecture
support.

Fixes: 46c15a4ff1f4 ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nuvoton/Kconfig

index 919d3166756c9d69c5d9e856c1ad75272dccab61..40b36d1be8dc3d36c23f6645227be60bd707dda2 100644 (file)
@@ -4,8 +4,8 @@ comment "Nuvoton media platform drivers"
 
 config VIDEO_NPCM_VCD_ECE
        tristate "Nuvoton NPCM Video Capture/Encode Engine driver"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on VIDEO_DEV
+       depends on V4L_PLATFORM_DRIVERS && VIDEO_DEV
+       depends on ARCH_NPCM || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
        help
          Support for the Video Capture/Differentiation Engine (VCD) and