From patchwork Thu May 7 11:40:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 206948 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FD11C38A24 for ; Thu, 7 May 2020 11:40:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F4A2208E4 for ; Thu, 7 May 2020 11:40:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726134AbgEGLkT (ORCPT ); Thu, 7 May 2020 07:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgEGLkS (ORCPT ); Thu, 7 May 2020 07:40:18 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D887C05BD09 for ; Thu, 7 May 2020 04:40:18 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed60:6572:4a1f:d283:9ae8]) by michel.telenet-ops.be with bizsmtp id bngG2200E3ZRV0X06ngGdk; Thu, 07 May 2020 13:40:17 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jWesy-0007KV-Iw; Thu, 07 May 2020 13:40:16 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jWesy-0006NG-Gt; Thu, 07 May 2020 13:40:16 +0200 From: Geert Uytterhoeven To: Linus Walleij , Alexandre Belloni Cc: Arnd Bergmann , Microchip Linux Driver Support , linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pinctrl: ocelot: Add platform dependency Date: Thu, 7 May 2020 13:40:15 +0200 Message-Id: <20200507114015.24461-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Microsemi Ocelot pin controller is only present on Microsemi Ocelot and Jaguar2 SoCs. Add a platform dependency to the PINCTRL_OCELOT config symbol, to avoid asking the user about it when configuring a kernel without Ocelot or Jaguar2 support. Signed-off-by: Geert Uytterhoeven --- drivers/pinctrl/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index f0ce4ce3e0f52456..bed67c08a0892240 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -394,8 +394,8 @@ config PINCTRL_RK805 config PINCTRL_OCELOT bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs" - depends on OF - depends on HAS_IOMEM + depends on OF && HAS_IOMEM + depends on MSCC_OCELOT || COMPILE_TEST select GPIOLIB select GPIOLIB_IRQCHIP select GENERIC_PINCONF