From patchwork Wed May 30 21:51:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10440011 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 2DB60601E9 for ; Wed, 30 May 2018 21:52:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20980294AF for ; Wed, 30 May 2018 21:52:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14B7C295E7; Wed, 30 May 2018 21:52: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 B7844294AF for ; Wed, 30 May 2018 21:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbeE3Vwb (ORCPT ); Wed, 30 May 2018 17:52:31 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:53731 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932222AbeE3Vwa (ORCPT ); Wed, 30 May 2018 17:52:30 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MSYbs-1fnXfG2vu0-00RUx6; Wed, 30 May 2018 23:52:14 +0200 From: Arnd Bergmann To: "David S. Miller" , Grygorii Strashko Cc: linux-gpio@vger.kernel.org, Florian Fainelli , Arnd Bergmann , Ivan Khoronzhuk , Keerthy , linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ti: cpsw: include gpio/consumer.h Date: Wed, 30 May 2018 23:51:54 +0200 Message-Id: <20180530215212.1151415-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:VyW7q19B8esGnkW2ldhvzK7x/JoYgcUdgTuPryv9wT+m27vIc6U AaDoLgodhrfnl1fGTk9a/XhE5+v1xEvujMxvCcEyfZw77Y1Ktp4cdMfYSMRVQSkqMm7769w V2bxR2BLVd+7T5GpPf6i+7osZW/b5LRkPVZIf9Qu5FIcW0odZQ2gM20i08WAGrihPAzkiXo lOEoI0j+PVx7RWBkxIqfA== X-UI-Out-Filterresults: notjunk:1; V01:K0:yPMVF2pMrDA=:7W0RkLDHqw+b0BHeYbhFxU MBxi1FiwBGy7hU5xrYP9YI/DBpYsrMtsjbtKPk9mGyzRgABSWj3qM7Ln28wQ0A8mjHj+fptdN 8FPCtrS3ZrZTvApRISSvaw61akMjxnS7pDY3KyWZ3M8sOn4GUA0i1TfUefmGBci3Cb7RmpWhs eahqtzdEvYfdWty/ihUplfpJ6QBt+92DNWfDSGdn4keCNeU+FfEl6ap76nVLm76zO1X7yYTU4 UwzE80KUsl4IBgzDpAemya4gdTc6x2wN4I+C3MAi4Gy+6pBoAU7IGxXl/TgeIyOgp6kXqJwPO vtqAqSsFjfmtdt8JNGpEFJ8ESooBZSZ7izxOYPH9XxBcUTvRghBs8DrowEoh9rVUPCs7lkgfs 3i4V/PlJzW4Y7D7gh7qhpNx7wl+1HmHiPLxLA3Oh7Bd2/0STFizeLMpu5O0xzSzV4SbfxEG+R mLAW7XYMHeh/DekpMQsDtv2MlQ52qQ/0DksR5xomIwkPBzoBE39bN6BFsZ0z2r65QVp/NP16G 0NpLKUCdEV8TJ34pUQkKKhRXQqC/IQLZRRlesBehbufT5O5f7tib2u8XK5fQz+Cm534K8xtlQ AeUwaL880nCTColT9UYJvQQpaaOLMSnLvJrRQWO48XXQIE7pJ2sTDGoZnYXf96beVY9HLSU74 xss1Ajuisv4WLWoekmUNI8kacbi7Rli/0CQCPkeLTraDb+nPkoA+29qQ26nh1xQuEmXc= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On platforms that don't always enable CONFIG_GPIOLIB, we run into a build failure: drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_probe': drivers/net/ethernet/ti/cpsw.c:3006:9: error: implicit declaration of function 'devm_gpiod_get_array_optional' [-Werror=implicit-function-declaration] mode = devm_gpiod_get_array_optional(&pdev->dev, "mode", GPIOD_OUT_LOW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/ti/cpsw.c:3006:59: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'? mode = devm_gpiod_get_array_optional(&pdev->dev, "mode", GPIOD_OUT_LOW); Since we cannot rely on this to be visible from gpio.h, we have to include gpio/consumer.h directly. Fixes: 2652113ff043 ("net: ethernet: ti: Allow most drivers with COMPILE_TEST") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 643cd2d9dfb6..534596ce00d3 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include