From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933047AbcAYQow (ORCPT ); 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 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 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(-) 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 -- 2.7.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Mon, 25 Jan 2016 17:44:11 +0100 Subject: [PATCH 2/3] thermal: allow spear-thermal driver to be a module In-Reply-To: <1453740264-1972562-1-git-send-email-arnd@arndb.de> References: <1453740264-1972562-1-git-send-email-arnd@arndb.de> Message-ID: <1453740264-1972562-3-git-send-email-arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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(-) 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 -- 2.7.0