From patchwork Wed Feb 5 13:05:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 862210 Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (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 B5BFE502BE for ; Wed, 5 Feb 2025 13:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738760714; cv=none; b=hKYvkgJqklmAlCODZq+BndZfORtOShiTsuvef0oJHypYcYknA0lxffYbxq8ewYtDWQF6R0qQUTq9wDnZtBauLodaL/aloSyjrwYajV/AhRoeBWFH5NOu6gk8G4iNVdhIt8EVwUHrL/+auIaoqUNiK5GNIjhX7ImBsHqP1cgOkcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738760714; c=relaxed/simple; bh=1lbD5u3awMB8FBEfYe3jiPTwSBQuoBo9YXz8XbKCjpA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NIqia9TwM0DgJQxkTjhWbspHs1pED92/xqrNL7cZ/ADjVpM6hf5vYKUOKoQm3dC9Yl5PU+ZrVjWwiZMJMmITupLfG02+ExYDMoPPqr9Hw8KotSvhErLJHvhfmCU2nUrkL5Mc0ZE/hwqYeVVfwUuzoQUAx6gRfp5WFQwKcsqzcuQ= 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.53 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:fa11:c14e:2df5:5273]) by andre.telenet-ops.be with cmsmtp id 9p552E0053f221S01p55wz; Wed, 05 Feb 2025 14:05:05 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.97) (envelope-from ) id 1tff5I-0000000FvZS-3qWg; Wed, 05 Feb 2025 14:05:05 +0100 Received: from geert by rox.of.borg with local (Exim 4.97) (envelope-from ) id 1tff5U-00000006PqT-41G4; Wed, 05 Feb 2025 14:05:04 +0100 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski , Andreas Larsson Cc: linux-gpio@vger.kernel.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 resend] gpio: GPIO_GRGPIO should depend on OF Date: Wed, 5 Feb 2025 14:05:03 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 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 68c5e69342571495..285a93061daee717 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -338,6 +338,7 @@ config GPIO_GRANITERAPIDS config GPIO_GRGPIO tristate "Aeroflex Gaisler GRGPIO support" + depends on OF || COMPILE_TEST select GPIO_GENERIC select IRQ_DOMAIN help