From patchwork Mon Jan 25 16:44:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101104 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1466344lbb; Mon, 25 Jan 2016 08:44:56 -0800 (PST) X-Received: by 10.66.155.167 with SMTP id vx7mr26890788pab.109.1453740294605; Mon, 25 Jan 2016 08:44:54 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fd2si8025385pab.194.2016.01.25.08.44.54; Mon, 25 Jan 2016 08:44:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933078AbcAYQow (ORCPT + 30 others); Mon, 25 Jan 2016 11:44:52 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:51783 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932910AbcAYQor (ORCPT ); Mon, 25 Jan 2016 11:44:47 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0M78je-1a8x9h3D78-00x5IV; Mon, 25 Jan 2016 17:44:35 +0100 From: Arnd Bergmann To: Zhang Rui , Eduardo Valentin Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, spear-devel@list.st.com, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] thermal: allow spear-thermal driver to be a module Date: Mon, 25 Jan 2016 17:44:11 +0100 Message-Id: <1453740264-1972562-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453740264-1972562-1-git-send-email-arnd@arndb.de> References: <1453740264-1972562-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:slTMGtBECc0Jo+6KBNQ8omFcO8iGdy3Kr3Ra7DwWb/37R7dmBbg i5TxvRmmrEaNHKt69n+eg0ZEcUyWltc6O5w+lq2LYVnETBfqAmhDB34YlqHEmKcVeS9aMct auIgTKHDh5OHo6krDFoTAP9vyczTLJsh1R6hiH8E2YbA718WOSxY0TvfIIdWAqvDpk9wmTL uU2bTwpAO+HZCRiHnaqLA== X-UI-Out-Filterresults: notjunk:1; V01:K0:5rU2wQ5dh/w=:Nw3e3We0DZIGWtIgQgWiae SLyWg7WQUWf01Kxyqvvqyiz+AWWfz+Br1gzXhYOoFm8KeS/9n/3O2TIAwQcrNHvDrwn6pIJhC HBUDvY4sr4xhC+3dSq0gc6V+uODGYBEMe6z7tyVQXXsBkjo0cmKIhi/H6G/N2ywKHcmsdS/x5 bMOYflhPPD1JZPyppPrI6BhMUPyBqn6vqFtE44k3Ky/JqWOkmhJOFoQ1VnWURp2HKm8xo4m7p 4S+FaeGOTQ7uPD2+H/dHLB6n8hnlfUpyUXw+9eO4qx9ur5oGDwS9IgqKdqb0Pc2o4DXPkQWXJ n3Sb8dlt4GqbzEuCO6I4xbMbstIr4IGag3y/UuRiODvhz2Imwmvh40a7ZJUIhiaA1hKoE8p+3 +ko2CpvYK7NXdTbzY8M7vccaI0BSG0JVjYYsPICVTCsnCGGB+CgH58Rhg+MT28VfZDUJxgM/a MtX+BmWbzv5EAiKfHjz/0Xi9RqjtYr6vIMuA4/K57du5328Lyt1Han2VaYtQwsOJNJsEctbRj mMs/IszmYFkjxt7SVyrH+tIWdVTMFYd3AqVzmt60y9ktIgLrFfW+9EFjJKiBsqXa2I9gayCv5 PuZcVB21DmX3agqcCuZp0lGBifL1L3e2LRLwx0R2nMihFsVNDtE74wwLEjj8xYF/ckFYIXIuh R26U6foZSd6YCE1waPsoWXlVwdvE/r6qRLy1QDo57bJ+tFsEMxV3ZXTZWAdGhdNpl8D8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the thermal subsystem is a loadable module, the spear driver fails to build: drivers/thermal/built-in.o: In function `spear_thermal_exit': spear_thermal.c:(.text+0xf8): undefined reference to `thermal_zone_device_unregister' drivers/thermal/built-in.o: In function `spear_thermal_probe': spear_thermal.c:(.text+0x230): undefined reference to `thermal_zone_device_register' This changes the symbol to a tristate, so Kconfig can track the dependency correctly. Signed-off-by: Arnd Bergmann --- drivers/thermal/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 8cc4ac64a91c..0852fd028dc9 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -195,7 +195,7 @@ config IMX_THERMAL passive trip is crossed. config SPEAR_THERMAL - bool "SPEAr thermal sensor driver" + tristate "SPEAr thermal sensor driver" depends on PLAT_SPEAR || COMPILE_TEST depends on OF help