[<prev] [next>] [day] [month] [year] [list]
Message-Id: <f96a26f520d60db61105742b0ab3f8e853a2d570.1698222908.git.geert+renesas@glider.be>
Date: Wed, 25 Oct 2023 10:37:11 +0200
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Joseph Liu <kwliu@...oton.com>, Marvin Lin <kflin@...oton.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] 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: 46c15a4ff1f4fe07 ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
drivers/media/platform/nuvoton/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/nuvoton/Kconfig b/drivers/media/platform/nuvoton/Kconfig
index 919d3166756c9d69..40b36d1be8dc3d36 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
--
2.34.1
Powered by blists - more mailing lists