From patchwork Thu Oct 5 12:09:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9986981 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 93B8D602B8 for ; Thu, 5 Oct 2017 12:10:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F8B528709 for ; Thu, 5 Oct 2017 12:10:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 746C928C68; Thu, 5 Oct 2017 12:10:15 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3207628709 for ; Thu, 5 Oct 2017 12:10:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A34FA6E111; Thu, 5 Oct 2017 12:10:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 956FC6E111 for ; Thu, 5 Oct 2017 12:10:12 +0000 (UTC) Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MUgYZ-1dr2aD2ZvP-00RLcR; Thu, 05 Oct 2017 14:09:58 +0200 From: Arnd Bergmann To: Mark Yao , David Airlie , Heiko Stuebner Subject: [PATCH] drm/rockchip: add PINCTRL dependency for LVDS Date: Thu, 5 Oct 2017 14:09:39 +0200 Message-Id: <20171005120957.485433-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:e26/wIWGkhZL7M4NBpeUtxkN9BaVVnijI1EvoVlgOctJEuODCXZ A04T8W4g+PYF3tpKwadVX/ZO2GQTsEF3u3JhoNSG/kr+JhDuxtzkkq+HrtcdFyHfn9EGjWE u9+LkXBvfqhqpiI+791N2bOHA2/VC+INpKNKZsuos990GyDFAI4a8K3nh+fHU4sRfxoaj3A n0x4Q4fPSBSB431fjSuzA== X-UI-Out-Filterresults: notjunk:1; V01:K0:ztcncKFZhP8=:TG3lHcywBodHozDLv7HfG9 xM31wAiINyLiLPBtCxiPjvfwzFW+aoha6jPqfN7yr24XohjDepvLsgLoBrsupNJQEI2jCBk+S jY9IhXDeMl+jK6oaQNr3bHUoazKeDewoA0a2fsnIxktwCUcsNqwSodpUeHFMS1V5q9KoODSMD iqAfkOHX4xE83FwqK73QVLvN9HrLvZu/Obm0JpM0Ilyu7Bmu+vuhNQ1bW+vARAipYyFbf74x/ +rBqH4btEyZsyPbbqLXXyfk/YPOaqiAlrot2nx4wR00Wj3IO0EBDlYn8TijxTlHNbvLo39+RV ztxzvfRIXuJVUEleaaRQXe77Vmg2HZA2dYPTE0yn2pItcINxkCev8qaz3H2TFbkzWf4gOYgxJ zOWyZxMimIpFu/Ecl0w62RfY9G9SXGMbKl78chTvQ2YnnUksJkM6ax/Vu6ChF9OM0MBT8W0bm AO2zF4iyaWzwqx8Y/P/Q2kWw+pw1yktniXBiczCiFzlQ0QPOJHH1k1w/zSXbS16MbwEll9zf2 rt2E3LiWZHgdjFoHR7ywalwHoon/RiF44693fNb/qNSwmICjnLhJgbgP7iqz4T1nlXCiJOtcL K2XGyePfY9PKjCGWREtAQUzRBcsQndznwTuXBjmKtKYS5uH52KPC5FXpGqflCves6B1GoHq6Y mwKQ/RmIn0S7nTpPEtuANJnAm89PyyOrPWYrYJu/eXtgVb0M0HgF1EAr7zHoJ6Uirm27i/xy8 B4XE336MqAi/Y4x5/5krTnu5/B3Ra+3zKH2rjQ== Cc: Arnd Bergmann , linux-rockchip@lists.infradead.org, Jeffy Chen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chris Zhong , Guenter Roeck , linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The new driver fails to build when CONFIG_PINCTRL is disabled: drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config': drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct dev_pin_info' if (lvds->pins && !IS_ERR(lvds->pins->default_state)) This adds the respective Kconfig dependency. Fixes: 34cc0aa25456 ("drm/rockchip: Add support for Rockchip Soc LVDS") Signed-off-by: Arnd Bergmann Acked-by: Mark Yao --- drivers/gpu/drm/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig index 0c31f0a27b9c..3c70c6224bd2 100644 --- a/drivers/gpu/drm/rockchip/Kconfig +++ b/drivers/gpu/drm/rockchip/Kconfig @@ -60,6 +60,7 @@ config ROCKCHIP_INNO_HDMI config ROCKCHIP_LVDS bool "Rockchip LVDS support" depends on DRM_ROCKCHIP + depends on PINCTRL help Choose this option to enable support for Rockchip LVDS controllers. Rockchip rk3288 SoC has LVDS TX Controller can be used, and it