Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp51281imu; Thu, 8 Nov 2018 14:36:20 -0800 (PST) X-Google-Smtp-Source: AJdET5er2nkXynnHX8vnUeZP6+ClS112zQy+JZd2CaHYehrvCRC+QBm7bYuCxIW6DreBrE3nxM+c X-Received: by 2002:a17:902:f08f:: with SMTP id go15mr2292716plb.332.1541716580219; Thu, 08 Nov 2018 14:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716580; cv=none; d=google.com; s=arc-20160816; b=DvrMWSL5o164G58j7iSE7Wb5tIy4O70u9Wdwo+ROfRmLFjzw7aJahmvOkpzD854WAU k6BS+7elqK9UE7z6Z4y2V2MPywKu3ARwqCTyA3CJjoo/qiUT0UMBwXdUvCS8CuVwaPfl wHEgAjGPKgnCplKol13es7yNs6DB40oVBjVpQQYIz77L2lHYVs8uUP9y+O1k8ZI/aJUo Geim4AXtFcU/N//yP9QRTqF6mFETiEOMVdL/aqrLq+XZaY9D0vBWWsO/eGmKMSYRVAzc CEHNsmyuF2xXCK8Xt3Bbb50aAWjn4BF6yHjt5CcWy7Rvqf7NhOzX08VB4W6HqNeYB7iq RqmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=itM7bHTq10a08/684S+2dv0yRAMdAMHMqMYpijNvOa4=; b=cG2g8vs44sXMmxjNgjyg9kCUk8ExPrpavMU4uMEmgJZ6dPP/TLYklaOPVibrasNJFj 3uPfL6Aeto0fc8VM7m3XMCdkwMVuc2626Qpej6lrZUqBT4H5ELxpCVJ/v4e7G7EfmoIB pxDl/QktbhlMjadID3YH8xkQB6rFew++dWkdaEYjznYnWHvHlE5twqum2lZ6jbHQe9um 3KTa+vvE3rBfofBgl96J5dKOLEq7u4vaKqbhwM6KWvhPXgEyCEOXdL2BpGt6WvLMLQpy XCfKZ9M+Txf0Xp2KVF7jpDO6dZx2zp4NvTxktCXml80cyNzdXwa7X4Pnf1MDNmNa1Nue gUmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="MJ/PQ2Lu"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m70-v6si5514771pfj.48.2018.11.08.14.36.05; Thu, 08 Nov 2018 14:36:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b="MJ/PQ2Lu"; 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 S1729953AbeKIHgr (ORCPT + 99 others); Fri, 9 Nov 2018 02:36:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:54336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729310AbeKIHgr (ORCPT ); Fri, 9 Nov 2018 02:36:47 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B7FE21019; Thu, 8 Nov 2018 21:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714358; bh=tyuiD95XB5WGPqf0U3FsKQKDBQ6Z+XcQ7p/kwRho4mU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MJ/PQ2LuSU2Ts+fUntdh9DUKDUQKet10KH1Uqfw4lzrSjsMAE/tA5MNpHWPexoy6j oMYZuIsk+z68KZL+z1GcSI2WnaRtyo7lvp41/o6uHNFVZ7lbahcoEd6fNFzZopk8jb mOssJLOS2jTyH2CjFyJFN6J0fvvsfFxxKAtfOXJ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Eduardo Valentin , Sasha Levin Subject: [PATCH 4.4 034/114] thermal: allow spear-thermal driver to be a module Date: Thu, 8 Nov 2018 13:50:49 -0800 Message-Id: <20181108215102.515329622@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 4d2f1794c07aae55b8f25f4d8aebcafc0d3e501d ] 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 Signed-off-by: Eduardo Valentin Signed-off-by: Sasha Levin --- drivers/thermal/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 4b660b5beb98..b556fa8250fc 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.17.1