Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp17563imu; Thu, 8 Nov 2018 14:00:47 -0800 (PST) X-Google-Smtp-Source: AJdET5dySSjH+/7/U2yrwFyIZZcQGBnuHh94MgClo6orKZ83AkVvjAI174hTwBrNTRTXRUBuXuM2 X-Received: by 2002:a62:a218:: with SMTP id m24-v6mr6108707pff.99.1541714447086; Thu, 08 Nov 2018 14:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714447; cv=none; d=google.com; s=arc-20160816; b=MzxFAOR7DdzXvS/0/kQ2zS4PZEohSnxtoetlhp+RmA/WFah8i+Nxu6CCrIbwIZwJOp V8hj0MoRZ5HE/G6onuQ8Do5QZHtTcSLCgYPCUfYGD2ONFOgxViSjOMoy3h6YeYApkGmb 5cERVpkL1AQ044yqzmoQ25hWfnjk3nNlDHRbDrGH7gdCVVrmiO2aF6oY9AfeEIRCD85u BVryi2jCvuBtr5QME2WZqIcdB+ejWXDo6NEWuBPZfcPHaavMrph+7iDwDocbRKD0Gdza zPh48i2PwqU8IPN+IYfGSoZg0IcUarsqbJIb3CBVoL+VXuSGHH0yOeIQwg4HCeQJKY99 yg8w== 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=U2AOp1IoEmDsRJBH0eDhFjxR0+VA5kOI5wPSyEfxW2c=; b=lyH0yXquo40/xuCN8NhvrQEEYNug3JnwVpdwOM8zz+FXVrz1Pa6iDrRaWXVBC4SiLZ h301kt+v/6H1AL0sBKvynQpWqRWfM8WByh7TbRjsgZEFmxyXsIKwR2X/3EHXUUIzD7MT 6p7VsZ3jvHAxYtv7JCxV30OpItSiUgNWj3HXQpdQhqGIx2/T3Gr7Uf8pL3NHOTG2oN87 DNubQ/IVOeVFRmGSkA5ZW8jmSPodTK0Mfpjyj9BFxzcUue9Uy48jnGrDU4hbsnGvy4Jc tEowSjd67yeHyCn6m5vlvW30xVyAQChQLmzsHZ6to2+Rn1D/kY+p5N140R/jZe0xXOPQ y1pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OQyPONkT; 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 o13-v6si4574971pgh.61.2018.11.08.14.00.31; Thu, 08 Nov 2018 14:00:47 -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=OQyPONkT; 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 S1730033AbeKIHgy (ORCPT + 99 others); Fri, 9 Nov 2018 02:36:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:54586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729930AbeKIHgx (ORCPT ); Fri, 9 Nov 2018 02:36:53 -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 54328208E3; Thu, 8 Nov 2018 21:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714364; bh=irjNwdiyZ+IXOga1f9nL2Ua6JL+oa7CFL3Jh+EeUbN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQyPONkTZ64UuWnxE5DQYn730TUUy2BhTx0V+ymB/JkW2FRNjXZ8HlraPT3P6QVVk d/uOYAHImHoFmG6HEOpxEUJAPP0OMNn4TTmLUdQg03y09QaHPiNOVHMsHoeKRkRWLk EmBkwswG9SIakDjmIS6IpS65+8oiXKPbMm5CMx94= 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 035/114] thermal: allow u8500-thermal driver to be a module Date: Thu, 8 Nov 2018 13:50:50 -0800 Message-Id: <20181108215103.077903100@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 26716ce124fce88f288f07738ef685d5dfe5c13f ] When the thermal subsystem is a loadable module, the u8500 driver fails to build: drivers/thermal/built-in.o: In function `db8500_thermal_probe': db8500_thermal.c:(.text+0x96c): undefined reference to `thermal_zone_device_register' drivers/thermal/built-in.o: In function `db8500_thermal_work': db8500_thermal.c:(.text+0xab4): undefined reference to `thermal_zone_device_update' 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/mfd/db8500-prcmu.c | 3 +++ drivers/thermal/Kconfig | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index e6e4bacb09ee..12099b09a9a7 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2048,6 +2048,7 @@ int db8500_prcmu_config_hotmon(u8 low, u8 high) return 0; } +EXPORT_SYMBOL_GPL(db8500_prcmu_config_hotmon); static int config_hot_period(u16 val) { @@ -2074,11 +2075,13 @@ int db8500_prcmu_start_temp_sense(u16 cycles32k) return config_hot_period(cycles32k); } +EXPORT_SYMBOL_GPL(db8500_prcmu_start_temp_sense); int db8500_prcmu_stop_temp_sense(void) { return config_hot_period(0xFFFF); } +EXPORT_SYMBOL_GPL(db8500_prcmu_stop_temp_sense); static int prcmu_a9wdog(u8 cmd, u8 d0, u8 d1, u8 d2, u8 d3) { diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index b556fa8250fc..1def65d2f0b5 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -237,8 +237,8 @@ config DOVE_THERMAL framework. config DB8500_THERMAL - bool "DB8500 thermal management" - depends on ARCH_U8500 + tristate "DB8500 thermal management" + depends on MFD_DB8500_PRCMU default y help Adds DB8500 thermal management implementation according to the thermal -- 2.17.1