From patchwork Fri Jun 28 10:29:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168053 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3510969ilk; Fri, 28 Jun 2019 03:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqypKNdOESdKKIfLB/LLRZ5ZtyN0dJIevdT9vUQ8Xd+hkjImXM/krlrpXPsmxwqMcU/Tesnd X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr12285743pjb.2.1561717807984; Fri, 28 Jun 2019 03:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561717807; cv=none; d=google.com; s=arc-20160816; b=DIsj4Y0JXifDQ+5bzgKBZrzTDqwwqsoQU2UoX5Nfl4MGBjW7mZY3QOnoMOTHqFUs8S cHFVd6z9vZX3LavObOfkNjGLKoI307h/VZ50iA1AWshgWOrBnVcI5quSl9OcdHGTfoVw N3sVK695RLULnpMsn9ACh+2mXOR0GDF3l8BbM3HI1htJCb/Eqmz+uhGVHHf5QFbNcZ+X kVjIROUbKd/Sa/eTNzRUlkX0Fikd+tmK/qoCbxIpODpUtyAorrt7C4cehPFlpi4wBuPT tOIIMuBOgNN/9mWiFJ2QkNuxPr/cfJ6c6hr0q+h4A9itj/g/K2bDAH9vwZexPJWoxPPs 3kCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N5d/Majsf1PFnD2Eap2YFA4RfblGo659+N4mOw4GDHw=; b=0gK0ifxAtEFXlRUv56R6pf/46XE6nAMhB4bGQr1r19vbHOxuZYgwny28KJF1rC322v tAMPu6iy5M3gVqbUqJNnw5ribPl1CV3ETqqKD+rtfCgiB9Zqs09mibz6cw7sA/5VUTs6 EU94lo+Ekj3Tw4r4UsTfuhKli6Y/Kky/llOIdhRR119aFdE85SnaKIwRpj1OuNvUQDEw 6pUcqQxQWh+YWfqa5uz5hBkZOt6iaAC+TreDQaYDm4ZuEhRnG83BbxSuCMIe5cnmFAX/ /PAbxy5hjlRR3X0Yzd5FE8IszGYxNRZjosdCvqFx1TWQKRYaeGJ1SYziNDmbdmftDlrV 8f8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v143si1789712pgb.229.2019.06.28.03.30.07; Fri, 28 Jun 2019 03:30:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbfF1KaG (ORCPT + 30 others); Fri, 28 Jun 2019 06:30:06 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:55213 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbfF1KaG (ORCPT ); Fri, 28 Jun 2019 06:30:06 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1N7zW7-1ic3kn1u4Z-0155ao; Fri, 28 Jun 2019 12:29:54 +0200 From: Arnd Bergmann To: Thierry Reding , Lorenzo Pieralisi , Bjorn Helgaas , Jonathan Hunter Cc: Arnd Bergmann , Manikanta Maddireddy , Thierry Reding , Vidya Sagar , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pci: tegra: use correct gpio/consumer.h header Date: Fri, 28 Jun 2019 12:29:45 +0200 Message-Id: <20190628102953.2369879-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:zzUOH1RM+MdToDOSOYUpqwuJhko3ET3hxBn0kGPsim+JIxZYxG1 XL97K10O0FLtJdhcC8TvvrZ+HcsVaob78pOqwoRHayQtkPzyUnXYmeRdZiooYnSWvlgaDLJ UX1HF8WDmnop1ec+ErULmE0rOEZyKM9nbU1B5YxhZUgpe/PXfZSN184ruVBbzJmE9JY+IqL 1bg1JEOXFUbYd0uZnb7tg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:uOgGL06hKEA=:hS06+fwf1oiScunEXCJ/Q9 FPwbQ2nNg3RcBK2Z9OxHw/n6hxX2YWAfAAjYU7fMzaedv9Y426SIChlRpgYSQ+5t+eUhN8oSz aaw315oUK2DmZfIALtX85tDBJM+OoAGBWE50jGYGYdnmTvobIpZFJUqEl0uVJ5Qoq+WJ0F62O 2hX5thowapEb41Jc2InElhRBOz8qRdnLXZ4bSldmCez5V+/wxUakjVTnRUQGDJHW74vufTVMT WsXmutUVJyujUC3x2gmo35hOjKY6wnekr8ldjGC/KVYXIBxMtdDPLYuDv3pfOgSF1TTHiH7an eIrvajVlLiZhCD6rNogHzfZarweSFnJMmqm569guG0m/111LCUqrYSj2X3Qs7m1Ots2MZQ+Vg klsnxXrX2LR8NWpc7GCIh4JnKdpyoWtRUssI8pa/zhtNwF51/rgpELL57qCf3kTOyXWwt6r6U jMev3IoHVG9fBcjSenEVIfDLoxLo/hIbHvAc/rIP6EvIJQ+w26caYlYXB/A2sBu48oexCAhNQ md1cRiV8C6nvA6qekQ142FAUBnJoxm46ZbIGa4VtDxzQ86TvT9FYY4UyriUWcT/j1+axePGRX mPclptMg0uriMqyRMZWrVOT/Lv1QwUlRgavwu3iPKYG40LqwsaxvBPWKSpmrmweCYz9uxETKg zl66Dzbhcab4Xoq2Azb7Hlkd4Nx71qBL/isG7n3a6Hc/VXc90NuYFE+CeKXGZ49ZHrfb7UTfP RmamvsxPm1j3TdFlCE1Ls3psNS/Anqx2Zf/P0w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/gpio.h is not the correct header for modern interfaces and causes a build failure without CONFIG_GPIOLIB: drivers/pci/controller/pci-tegra.c: In function 'tegra_pcie_port_reset': drivers/pci/controller/pci-tegra.c:551:3: error: implicit declaration of function 'gpiod_set_value'; did you mean 'gpio_set_value'? [-Werror=implicit-function-declaration] gpiod_set_value(port->reset_gpio, 1); ^~~~~~~~~~~~~~~ Use linux/gpio/consumer.h instead. Fixes: 5e5e9c23f82a ("PCI: tegra: Add support for GPIO based PERST#") Signed-off-by: Arnd Bergmann --- drivers/pci/controller/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index 9cc03a2549c0..1775b88c0aec 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include