From patchwork Tue Jan 3 12:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13087506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45210C54EBE for ; Tue, 3 Jan 2023 14:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8Xzx+63a1h2bYbWlQ8+9Zk7CX7uT+2k8kMbu8mLToh0=; b=GQ7MA0mPKaGIhn dJY4SyJDEeP52g675CGtzgthdVn+ZBHXZlG6qvrBtox3WVrDt3UoWSgkLkjMmmjzfd4rn0UibBoX/ iwpG74jlVT/uy1qnHJV+3IHZOaqaRb4hZW6q7wa5M38kQb+2Wpnp9Rcsk4Fvw/K5Z0MDnc97KQfwU mQ+D77e7fdYNJqYOqt/vi2gNfvJlXKrrJrCFJ1WFdMJg1H6x1urkaaa9bvqpIBoAYPDuOn1TWLVdZ AmdyuvCVK+RJVnbvY0KLkgDZiORAj3HHRx8R24dpgU/ofEqv/mAR9Ap4YBjN+dGTgCAnSBWkkh0wC dbk6jrGPHQr2PRCDkWIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCi3c-001rVy-9o; Tue, 03 Jan 2023 14:14:25 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCgF0-001BQT-HZ for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2023 12:18:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 57C64612E9; Tue, 3 Jan 2023 12:18:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CD60C433EF; Tue, 3 Jan 2023 12:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672748280; bh=iozRXvof/ZOKofGbVDi16VyshF0obFK3LOrZ9yM/zjI=; h=From:To:Cc:Subject:Date:From; b=uZDfUwPXN4L3EpU8wFKNuCvwmq3O6BNZXunpSK+3huzZ0aQhcq81VfRvAZ/bwXwcR YxrTZDAL6W+v1/A0JTsiDjyLmPWYywxdRPgwvu7lqeJciUoYQb3ACOXwmUmyj0wTOt PlBv+xKI9oT93M5GTtJMgxiSRcPW9+kZFuIfIV4sNdsWQTwKH/cpdtq4rpm8MGbe0R taAsx0T8aA+MKMXGGqr9T1EtOfsEoKfxjvHs/NkesuCmlGKDS2NXLV2T3loDQIgsaj WO9P4jEnqiyZE0KDgBCUZATP6xhsB5xgocpaQAuKNkEqKvMM5G9+bswo/jyX6NHvPA 5kR9FmLSJxPYg== From: Arnd Bergmann To: Thinh Nguyen , Greg Kroah-Hartman , Michal Simek , Piyush Mehta Cc: Arnd Bergmann , Robert Hancock , Piyush Mehta , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: dwc3: xilinx: include linux/gpio/consumer.h Date: Tue, 3 Jan 2023 13:17:46 +0100 Message-Id: <20230103121755.956027-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230103_041802_703440_E2C023C3 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The newly added gpio consumer calls cause a build failure in configurations that fail to include the right header implicitly: drivers/usb/dwc3/dwc3-xilinx.c: In function 'dwc3_xlnx_init_zynqmp': drivers/usb/dwc3/dwc3-xilinx.c:207:22: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_clk_get_optional'? [-Werror=implicit-function-declaration] 207 | reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); | ^~~~~~~~~~~~~~~~~~~~~~~ | devm_clk_get_optional Fixes: ca05b38252d7 ("usb: dwc3: xilinx: Add gpio-reset support") Signed-off-by: Arnd Bergmann --- drivers/usb/dwc3/dwc3-xilinx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-xilinx.c b/drivers/usb/dwc3/dwc3-xilinx.c index 8607d4c23283..0745e9f11b2e 100644 --- a/drivers/usb/dwc3/dwc3-xilinx.c +++ b/drivers/usb/dwc3/dwc3-xilinx.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include