From patchwork Fri Jul 15 20:29:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102010 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp812960qga; Fri, 15 Jul 2016 13:30:26 -0700 (PDT) X-Received: by 10.66.120.138 with SMTP id lc10mr34584784pab.33.1468614626023; Fri, 15 Jul 2016 13:30:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a78si3447844pfj.35.2016.07.15.13.30.25; Fri, 15 Jul 2016 13:30:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbcGOUaY (ORCPT + 4 others); Fri, 15 Jul 2016 16:30:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:64714 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751414AbcGOUaY (ORCPT ); Fri, 15 Jul 2016 16:30:24 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MXFZN-1btkxe0zhN-00WAuE; Fri, 15 Jul 2016 22:30:15 +0200 From: Arnd Bergmann To: Linus Walleij Cc: Arnd Bergmann , Ray Jui , Yendapally Reddy Dhananjaya Reddy , Pramod Kumar , Rob Herring , Florian Fainelli , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: bcm: add OF dependencies Date: Fri, 15 Jul 2016 22:29:54 +0200 Message-Id: <20160715203012.1715182-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:E/tpW/Z+ZcQxRqDmjIdlqGXBnnr49lK+5RzACzWlZv5fOaV2n/x +PISz+7n6x1uMF0kGCxsXz234vP9lVlsIoV1WW+EDquQVzAwokmSCCiAoBiYTK4hfV+COIb GHWf5l1+JUarBDQFoJEXjfpptN+2s9tPZ/o/i7NCtaAifJpoLViBUESY69e8shcgbLwc9bt yFsiQXd8HSDCI2Z8RUgmw== X-UI-Out-Filterresults: notjunk:1; V01:K0:X0zbfqr9OzY=:/lWdtqHMyYGlc+DG/1FZgN 05qNgKsORs04o4lJh9HKMFIJJZL2j4IDir2iQmnK1ZQFz1DVfkw8PWx9fYMn3Knsb6NcWfsQ+ EQVW46T4ADlVsN8BLilEitdWYCwmExBfx/3maQbuFAs0hNk70SjePbgOgeT8rNn72bI8uTpok bpdMKzHm4i7ZFnLI/S1YAMZElch2e8USDC9z7esZ3EfZYXCrk9KzxbSZHomIpcIdEEtjCWkpo kSbZLzFpyE5rbduzj27wQg7DtPq9NY1+dMbgWJltFqb70cOpnAIhtdNqZ/uEIfWxFoEnK28Ag abOE6qPcEUaYxOFcwaIo6thFrG7cb2MBDq/epvDFWlLDpMAMVqkkW9O1MHsEyLpogu5K3vUMU rbXYxZgUNiNyYTeXQ/Uo7hb9qp+6CiOIL/xP/NygjFiBsSqwbl+TSgJy/wVQa3tIXIA5E2c3d kbO3vD9PI0pvspd3WpEpHlQ2e1jm3vpjzb+aTgrcY4w40OAbROICTL0nqohkACisR2rbWry17 7vzRZ/bX7piYbKPwNTW/tLSOiCWWAwOjvQ4wNlF5fFLo2udb2Osn39RCdEVxuaxiUQ9VT7D88 QAgvL3p8hMwOiITGe9nZGWmgD/aH5dyCnVB9Yh0rrsdp/19OC88A/C47KiZqSuDufRAakEs5O 91jBWzZsBR193qkwoljZfDbRrxlsxW34BMKzPlPsvc6oa6DiaPL1f636ehLdZC7XJHTc= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Building without CONFIG_OF gives us these warnings for the broadcom pinctrl drivers: drivers/pinctrl/bcm/pinctrl-nsp-mux.c:356:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function) drivers/pinctrl/bcm/pinctrl-cygnus-mux.c:739:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function) The function is only available when CONFIG_OF is set, so we should add a Kconfig dependency for both drivers. Signed-off-by: Arnd Bergmann Fixes: cc4fa83f66e9 ("pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC") --- drivers/pinctrl/bcm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig index 7967c6723676..63246770bd74 100644 --- a/drivers/pinctrl/bcm/Kconfig +++ b/drivers/pinctrl/bcm/Kconfig @@ -60,6 +60,7 @@ config PINCTRL_IPROC_GPIO config PINCTRL_CYGNUS_MUX bool "Broadcom Cygnus IOMUX driver" depends on (ARCH_BCM_CYGNUS || COMPILE_TEST) + depends on OF select PINMUX select GENERIC_PINCONF default ARCH_BCM_CYGNUS @@ -103,6 +104,7 @@ config PINCTRL_NS2_MUX config PINCTRL_NSP_MUX bool "Broadcom NSP IOMUX driver" depends on (ARCH_BCM_NSP || COMPILE_TEST) + depends on OF select PINMUX select GENERIC_PINCONF default ARCH_BCM_NSP