From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Norris Subject: [PATCH] drm/msm: dsi: fix compile errors when CONFIG_GPIOLIB=n Date: Wed, 20 May 2015 15:59:31 -0700 Message-ID: <1432162771-10905-1-git-send-email-computersforpeace@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-kernel-owner@vger.kernel.org To: David Airlie Cc: linux-kernel@vger.kernel.org, Brian Norris , Rob Clark , Hai Li , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org I'm not sure where, exactly, but somewhere in here we must be relying o= n an implicit include. drivers/gpu/drm/msm/dsi/dsi_host.c: In function =E2=80=98dsi_host_init_= panel_gpios=E2=80=99: drivers/gpu/drm/msm/dsi/dsi_host.c:1356:2: error: implicit declaration = of function =E2=80=98devm_gpiod_get=E2=80=99 [-Werror=3Dimplicit-functi= on-declaration] msm_host->disp_en_gpio =3D devm_gpiod_get(panel_device, ^ drivers/gpu/drm/msm/dsi/dsi_host.c:1356:25: warning: assignment makes p= ointer from integer without a cast [enabled by default] msm_host->disp_en_gpio =3D devm_gpiod_get(panel_device, ^ drivers/gpu/drm/msm/dsi/dsi_host.c:1364:3: error: implicit declaration = of function =E2=80=98gpiod_direction_output=E2=80=99 [-Werror=3Dimplici= t-function-declaration] ret =3D gpiod_direction_output(msm_host->disp_en_gpio, 0); ^ drivers/gpu/drm/msm/dsi/dsi_host.c:1371:20: warning: assignment makes p= ointer from integer without a cast [enabled by default] msm_host->te_gpio =3D devm_gpiod_get(panel_device, "disp-te"); ^ drivers/gpu/drm/msm/dsi/dsi_host.c:1378:3: error: implicit declaration = of function =E2=80=98gpiod_direction_input=E2=80=99 [-Werror=3Dimplicit= -function-declaration] ret =3D gpiod_direction_input(msm_host->te_gpio); ^ drivers/gpu/drm/msm/dsi/dsi_host.c: In function =E2=80=98msm_dsi_host_p= ower_on=E2=80=99: drivers/gpu/drm/msm/dsi/dsi_host.c:1918:3: error: implicit declaration = of function =E2=80=98gpiod_set_value=E2=80=99 [-Werror=3Dimplicit-funct= ion-declaration] gpiod_set_value(msm_host->disp_en_gpio, 1); ^ Signed-off-by: Brian Norris Cc: David Airlie Cc: Rob Clark Cc: Hai Li Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/msm/dsi/dsi_host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/d= si/dsi_host.c index 956b22492c9a..98aae759f2fd 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include --=20 1.9.1