From patchwork Wed May 30 21:53:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10440017 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6D7E8603D7 for ; Wed, 30 May 2018 21:53:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FCE82842A for ; Wed, 30 May 2018 21:53:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54170289A2; Wed, 30 May 2018 21:53:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04252286CC for ; Wed, 30 May 2018 21:53:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932431AbeE3Vxc (ORCPT ); Wed, 30 May 2018 17:53:32 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:38821 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932310AbeE3Vxb (ORCPT ); Wed, 30 May 2018 17:53:31 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lmgbf-1fwelq37tj-00aBTp; Wed, 30 May 2018 23:53:25 +0200 From: Arnd Bergmann To: Stanimir Varbanov , Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-gpio@vger.kernel.org, Arnd Bergmann , Jingoo Han , Srinivas Kandagatla , Bjorn Andersson , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pci: qcom: include gpio/consumer.h Date: Wed, 30 May 2018 23:53:06 +0200 Message-Id: <20180530215324.1178564-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:vWp/0v8x9WEIv7clsiVAqiZs2DUobQRTF9mPnKdvd0f2JjIsdbo /JTg/iLaf+PVgYKJedfF9NiG/5d0DhATvvndPZdUu45eYkqs8LO0U30t3yQEyScyuWi1lEl 44r03FHZcdbK2ynVAaHCoORxjVerxJxBq8NyFH1ra/kv1MExcOboBzUvmpS0ExhUp13FNdu Xswv++Bb01IeZtTzeZ6mQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:ZOt2u/6IGd0=:7h344KbOCfOCUjxx9dDaJV Y+TVW80JZyMKb6j/NEMDrj9C0C6Ub5QA6toGiwBeSi6q9EnKDvKZctF+m6b0LAcGcTvsmCBWr 9q9BP7r+Iiur1U/lseBfw9kUl6zTgyUbrmBL4IvEeBy8Dt/K/+6XfMrTDAV7mn7829a2gcttC +ZhQ48swv/8P2xW9HgquvQvF+WrjFimbGDfAkQixK+qWmt2v1d0TRIYR9txwENbcvpGMRv2Pj F1H+6fZ9CRN8VVaT6VPEZvQwzyE6gkMerBth3xYZhPvFOdK2OEDnW2/Mm7vXgBtt5FWj0nnx2 zRq72Tuy4s5R0J/cPehUw89JZrjapR5Vq+5pa8mM3jSsbQvj5vUlkW+RX15QEI+kZbOKAtpFz GDgCAJLIYqTfV/zyyF3kcao0lq6Ks0/boINvrX0bZZ9Ge16wW16swovcKbZEEsw7pqCnDWY2t QXeyUMZhS6MQyCq1NUaGTNUFfKXv1LIaPL+7KTYR7G3dGvqz617hcsOdERlpca3XKgvHnE6BR fI+yUude7dQLCCVC7Tr7UspMNLJL3uLXArAOGxHVjiPQiFZHt0c+SWbZnus1A4WmOexlILEEJ LWm0TkQMQuHHRrrYB3dEWGyArF9HAJ1oV3F6XdZN6McOhY4ujiMQr5QSV2C5F+Dw8xZdwF5vb 8EvmXotNlyxPEVmfc50TLowtlWf0Y3t2EVCa1cJ2ih7sGKlXk0Bemu78ML6rU7Lam6Jg= Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_GPIOLIB is disabled, we run into a build failure: drivers/pci/dwc/pcie-qcom.c: In function 'qcom_pcie_probe': drivers/pci/dwc/pcie-qcom.c:1223:16: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] pcie->reset = devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_LOW); Including gpio/consumer.h directly is the correct fix. Signed-off-by: Arnd Bergmann Reviewed-by: Bjorn Andersson --- drivers/pci/dwc/pcie-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index b65bbf7c284e..17df19db851e 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/drivers/pci/dwc/pcie-qcom.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include