From patchwork Mon Nov 4 10:53:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 2006168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-gpio+bounces-12512-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XhpX66HHgz1xxW for ; Mon, 4 Nov 2024 22:04:54 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 36A912811E2 for ; Mon, 4 Nov 2024 11:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E35F1D9A54; Mon, 4 Nov 2024 10:54:04 +0000 (UTC) X-Original-To: linux-gpio@vger.kernel.org Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [195.130.132.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D271C1D9A53 for ; Mon, 4 Nov 2024 10:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730717644; cv=none; b=NHI5c3WT4nLJtNVzlHDHnCcDEveeBWl3wbQWtt6VtcPxKk0rGpi2lHXBETqXUWgJJnHnfPzTR7ZILHi2V8rvGKREU5cLElTLYgjESv5lFfDIRmbq9PtyZyEgWj5vkiYJI2ZMB5et+TxLwYZAnnYJ19g5VwCStG0ztk9tLycDjmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730717644; c=relaxed/simple; bh=APcFNFk/zxuy3y5w8EFdvDprJvlMu8Z5AsSdBpSE1RE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=szM5Anju/62bC+JglO+2lI6DtS/65rs/KCscz/9fqwyxukOnl9qqtgf7X6fhNpegnL8QF9Mdr3IK5I2NnIjTh4EyN4Rqz+N3M0rSSUhOcKig0+PpBe9s/VbExcPNV07SkWv/+IyDm3xPXfdeHcs5pXT7jZIAueFQ5MMcWxKX23U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:cff2:a4e4:667a:351c]) by xavier.telenet-ops.be with cmsmtp id Yatt2D0042b9NYg01attZ2; Mon, 04 Nov 2024 11:53:53 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1t7uiD-006FYJ-Af; Mon, 04 Nov 2024 11:53:53 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1t7uiW-00E1KD-VE; Mon, 04 Nov 2024 11:53:52 +0100 From: Geert Uytterhoeven To: Bartosz Golaszewski , Linus Walleij , Andreas Larsson Cc: linux-gpio@vger.kernel.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] gpio: GPIO_GRGPIO should depend on OF Date: Mon, 4 Nov 2024 11:53:51 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 While the Aeroflex Gaisler GRGPIO driver has no build-time dependency on gpiolib-of, it supports only DT-based configuration, and is used only on DT systems. Hence add a dependency on OF, to prevent asking the user about this driver when configuring a kernel without DT support. Fixes: bc40668def384256 ("gpio: grgpio: drop Kconfig dependency on OF_GPIO") Signed-off-by: Geert Uytterhoeven Reviewed-by: Andreas Larsson --- v2: - Add Reviewed-by, - Depend on OF instead of OF_GPIO. --- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 3eec4f0e47064fa6..d0d31a087ee9b369 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -340,6 +340,7 @@ config GPIO_GRANITERAPIDS config GPIO_GRGPIO tristate "Aeroflex Gaisler GRGPIO support" + depends on OF || COMPILE_TEST select GPIO_GENERIC select IRQ_DOMAIN help