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: 13087418 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F2E7C3DA7D for ; Tue, 3 Jan 2023 12:18:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237550AbjACMSD (ORCPT ); Tue, 3 Jan 2023 07:18:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237540AbjACMSC (ORCPT ); Tue, 3 Jan 2023 07:18:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FFB101CA; Tue, 3 Jan 2023 04:18:01 -0800 (PST) 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 5EFC7612F0; 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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.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