summaryrefslogtreecommitdiff
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2023-10-25 11:37:11 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-27 12:44:19 +0300
commit3e238417254bfdcc23fe207780b59cbb08656762 (patch)
treea2560da8281e2026c4f692835c8b213559f05656 /drivers/media/platform
parent19e67e01eb1e84f3529770d084b93f16a4894c42 (diff)
downloadlinux-3e238417254bfdcc23fe207780b59cbb08656762.tar.xz
media: nuvoton: VIDEO_NPCM_VCD_ECE should depend on ARCH_NPCM
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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/nuvoton/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/nuvoton/Kconfig b/drivers/media/platform/nuvoton/Kconfig
index 919d3166756c..40b36d1be8dc 100644
--- a/drivers/media/platform/nuvoton/Kconfig
+++ b/drivers/media/platform/nuvoton/Kconfig
@@ -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