From patchwork Thu Jul 27 09:58:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9866521 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 6A3F860382 for ; Thu, 27 Jul 2017 10:00:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 539DD287E3 for ; Thu, 27 Jul 2017 10:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48890287EE; Thu, 27 Jul 2017 10:00:30 +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 3C6EE287F0 for ; Thu, 27 Jul 2017 10:00:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D66576EB87; Thu, 27 Jul 2017 10:00:21 +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.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 877326EB89 for ; Thu, 27 Jul 2017 10:00:20 +0000 (UTC) Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0M6heq-1dot3T2UE8-00wZ0Z; Thu, 27 Jul 2017 12:00:07 +0200 From: Arnd Bergmann To: David Airlie , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Subject: [PATCH] tinydrm: repaper: add CONFIG_THERMAL dependency Date: Thu, 27 Jul 2017 11:58:58 +0200 Message-Id: <20170727100004.300665-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:7yb9mD/tqFOYtGUti6q41z562imQV5ohx3se8e2p/Gx6j/WJrHg stbXxhuQFgay9JBjdttc/2ZMeY3woF2YnnjRsP4a5wETvQWfKJlpOb3BMfTk+TJ8ZGLEUJC +Zq6V+UZExRG1cHVr4w18HBErLJhGhmLiC3V293bg7iSgLV5uw6iUH4QAjOvg/FDnkBfI9+ dAAjfyNv+4fC0uswdBvFw== X-UI-Out-Filterresults: notjunk:1; V01:K0:+MLg55aByyc=:LxTAnGE7E4tGe5WMbOOrYT PdhoX5JTHh6dDHFcQ+sZB8ndb8ukWmmmzKl8w9HvZEW3tyjfWLzrASmgmipL0ZJ2rKA9JuKSi iez4JwzmelIG+6IU8AQzS99CCkubVBjQCjUvI1atzSMz71UtaR9+3navTfzrZigYacWqWx0A5 tV2LD8U/z7NRdQ8myA3gToBkN14gugxU8w2lKdSef8gt5Dg5aDRpSzqAFt1LAoFU8WCDbNaEF zlEs2xBjJWszcqn1d+HHPJlaC+m4b6deX1uF+JM4vUn5bx686XqORuqFFLA5WDd9iQDjSQBFv sEwIm4hatFN6N2ah4Oqt/eUhkmRn3iQw/PK/v06oBny9wpNr16LVg/iV2Hjz/K0kQS3lYlfnU 4MC2dUPoikswdf6w5xq4zNd1RNlYZVpU1dn3yY28Y5erH6na6Q6TQiOHNrZjjTTvjfdoo/f9c d+X+pZdh6cWmbcRUmcA856j+soNkTyCiEVMWNCYGSF5jVeXasTqWXK5WR+2mIDp4ZO8S3d7Dx IOToN6zFYLa91GUNxnp2KIF67E8KgVUmeMQNb/dbd20zj4mPq0MhogdB7gtVvpvyfkb4KVeWB 8XIgJjAqXSlHEKCgBr6HMh7+LBhXHmvGPwo23OTuirLXFeTOyzhhdcBwOmg8bYiTdvYb5unJg DzXy9zwkswNOT4EQqWFObGcYjDIXMb86Cdf/YiDdKzTXYHlnZkznses3bmAxV7vJrhd17wzgf sxwmmfbzyXV4LljE0O4AYBjHgoqXaHFSZq3wkQ== Cc: Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.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 RePaper driver uses the thermal subsystem, and fails to link when it is built-in but thermal is a loadable module: drivers/gpu/drm/tinydrm/repaper.o: In function `repaper_probe': repaper.c:(.text+0x540): undefined reference to `thermal_zone_get_zone_by_name' drivers/gpu/drm/tinydrm/repaper.o: In function `repaper_fb_dirty': repaper.c:(.text+0xff4): undefined reference to `thermal_zone_get_temp' This adds another Kconfig dependency to prevent the broken configuration, forcing repaper to be a module too. Fixes: 3589211e9b03 ("drm/tinydrm: Add RePaper e-ink driver") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tinydrm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig index 9596e447f877..f17c3caceab2 100644 --- a/drivers/gpu/drm/tinydrm/Kconfig +++ b/drivers/gpu/drm/tinydrm/Kconfig @@ -23,6 +23,7 @@ config TINYDRM_MI0283QT config TINYDRM_REPAPER tristate "DRM support for Pervasive Displays RePaper panels (V231)" depends on DRM_TINYDRM && SPI + depends on THERMAL || !THERMAL help DRM driver for the following Pervasive Displays panels: 1.44" TFT EPD Panel (E1144CS021)