From patchwork Wed Oct 25 08:37:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13435710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69F8EC25B47 for ; Wed, 25 Oct 2023 08:37:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232897AbjJYIhY (ORCPT ); Wed, 25 Oct 2023 04:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbjJYIhW (ORCPT ); Wed, 25 Oct 2023 04:37:22 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB9CD116 for ; Wed, 25 Oct 2023 01:37:16 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:7faa:e55:54a:cff]) by xavier.telenet-ops.be with bizsmtp id 28dD2B00A5Uc89d018dDsl; Wed, 25 Oct 2023 10:37:14 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qvZNy-007T6G-56; Wed, 25 Oct 2023 10:37:13 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qvZO5-00BsgW-0A; Wed, 25 Oct 2023 10:37:13 +0200 From: Geert Uytterhoeven To: Joseph Liu , Marvin Lin , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] media: nuvoton: VIDEO_NPCM_VCD_ECE should depend on ARCH_NPCM Date: Wed, 25 Oct 2023 10:37:11 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- 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