From patchwork Mon May 2 11:00:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8991041 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8C7419F1C1 for ; Mon, 2 May 2016 11:00:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AAEDC20211 for ; Mon, 2 May 2016 11:00:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BE9C82014A for ; Mon, 2 May 2016 11:00:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3140F6E58B; Mon, 2 May 2016 11:00:57 +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.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id 80B596E58B for ; Mon, 2 May 2016 11:00:55 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0Lmyuu-1bc17A1PY4-00h2zQ; Mon, 02 May 2016 13:00:44 +0200 From: Arnd Bergmann To: Stefan Agner , Alison Wang , David Airlie Subject: [PATCH] drm/fsl-dcu: add COMMON_CLK dependency Date: Mon, 2 May 2016 13:00:26 +0200 Message-Id: <1462186839-2224021-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:C/Tdut7Bl8hORloY1odjvnzIdr6B4cwK4+6lkmPx4A68WHFJaH/ ilbtv2Sb7roC6kMg5pCfziTQytTYWFto0GPcGN5oOtc3uUoqTEZi5Uh+R5Zq0LGzuC4EShA IeUoZpuTNafCQK82v1sNeOBLPMWpDaWs2faunaizd0svxj6FV0On3YvwTlwbnQShbP6kbhE XAgG1arJ4jDPUO2W5gq8Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:oHJCRzdt5Vk=:XNMrFUo8ESL9OYIOcCqdni ZqzZf0I/r/T/gdn6X39ajUOkreNxyAXXBb1aeI62K7dPjEynYZb4NQXC3qsxG7a02pST7Rpyd qwMQNY2sOCbVx1KRuiOd5bav5g6WEtwlO7d2ZiB/l9GzJeiR8AWxrA6RqdCIIcvyGCmAy7dno BixJs2a/18pGl4evnjEb1eTvAE/aQ1xcqrk52peQmZDwp127SpULVjt3j8XrAzVFtF8TzT4KU 4SkQqXMLkBST3H2GlkFAz9uCKv0KKbNJfcI6uzEXKOxbcYp1fcnoN8eQ/8h01yv0cNz2FMlho Sleb9ECtlwZiup7QzKH6KsXwCFSXDRhaYWjRRtmNp1fs4UB7TvQpvwQO6Tilb8/IeK55PiJXw qG7L3ps+Ph+bmlCS9uEogIdAMKHV5dWw60T9V3Wop08SwrVL0+3nBNN4MSg1Ij80FJmOcPJdl oo6WA+mNFEV41mnYKc4RnQ/ZvtG+vhYcn6l7L/dF6fjNNWjUfQS0zeVQzZU9czBRpk8X0HGIK EY5fFIJ4wjyW3M4fCQ6lqtyN5K/kI1BLb6Wnut4z5QM0t0anR8Ubqw/uf4cFIcHIgJNimJsCE F3ipEG4EKFQqZghKxdqYs/NpMMv75yVu78O32+vNoTLswNZjKE41IC3PPjmdTZb5YNkiAqf+U 91ZoulBjXPNkAlBF06Z1x2DKRq4+ZZQxIXGK4J54v73GKKepWXb6QlqepwtOCSk8Wl+8= Cc: Jianwei Wang , Xiubo Li , Arnd Bergmann , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, 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-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The fsl dcu now uses the clk-provider interfaces, which are not available when CONFIG_COMMON_CLK is disabled: drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c: In function 'fsl_dcu_drm_probe': drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c:362:20: error: implicit declaration of function '__clk_get_name' [-Werror=implicit-function-declaration] pix_clk_in_name = __clk_get_name(pix_clk_in); This adds a Kconfig dependency to prevent the driver from being enabled in this case. Signed-off-by: Arnd Bergmann Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for pixel clock divider") Acked-by: Stefan Agner --- drivers/gpu/drm/fsl-dcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/Kconfig b/drivers/gpu/drm/fsl-dcu/Kconfig index c78cf3f605d0..b9c714de6e40 100644 --- a/drivers/gpu/drm/fsl-dcu/Kconfig +++ b/drivers/gpu/drm/fsl-dcu/Kconfig @@ -1,6 +1,6 @@ config DRM_FSL_DCU tristate "DRM Support for Freescale DCU" - depends on DRM && OF && ARM + depends on DRM && OF && ARM && COMMON_CLK select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_LCD_SUPPORT select DRM_KMS_HELPER