Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp895508yba; Thu, 18 Apr 2019 11:22:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIkiN8hQaVqc7BrLm1SCNzFXSsWADQpqzJC/4+axhLJLoXudrB5WIFaCacmHkQ/ER404N1 X-Received: by 2002:a17:902:9006:: with SMTP id a6mr94760177plp.259.1555611735304; Thu, 18 Apr 2019 11:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611735; cv=none; d=google.com; s=arc-20160816; b=KaHNLspL9vq0k5wn7i4VUA2+/eaC1Fq0xCWRH7fTldvk2fB1biq3v2/QUcnMn/d/W3 5N7juXfuzzDgjK7JpSeq7So0PPkliydna7WOtUuRJkczo2K3cWnbtS03IdfwoP65+9Wv sViviP8Yeiak2sedpW9PpczTODc8aj2Gpw4tVTrdgQkgEk8m7Bl/OXeSuP2G1FhLM/ZL 1f5/1AIgSwd66ggb1RvIRBac8/7mHzQPYRxaosqVo7BroZEGb14m2cXpZr6giH4CFbWM wJvJME8vVUB0w008RXi2fItzN4Z+60mVh62M5CWmCTC+eCpEDg6bwh5ABfU+shE3BOCx Ug+A== 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=B15kEHUh90rokQlqyV2BL1/uuyzUOEqagUKJPkjySRY=; b=QC7pTBBUcUZF4i4FPjB9eTRgTCa86J1dOs6WHC/TAI/qJTJb4CgWrPuhtOX1LqZkD9 krKbAq0CZ8VmSpQLy9rE8D3cxrUq7EsY4jI1GukrorOOcMNOvQ6GvHXNBaMGNt25kzgX kwDP77jmvoMoym15v9gI8H2hw+tcIbfa4ynHwTvfj1WvwP1x6/9H/T1tcyjHlk108XLd AMZHqKS2GBVNWA0WoovYRrVarFxdDsIZTd6yeUyg+YakxT4mYwDq6EiUNu6fZMjVTy4M cs8nI8wV/YBy5ZAjfiwxUhDK88VSg0+38Bessvo50YaOIYnPJVvxN9A+sWwro+EeBTWy jRCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TSGDwHYb; 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 r11si2460970pgp.337.2019.04.18.11.22.00; Thu, 18 Apr 2019 11:22:15 -0700 (PDT) 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=TSGDwHYb; 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 S2391902AbfDRSTJ (ORCPT + 99 others); Thu, 18 Apr 2019 14:19:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:41754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403942AbfDRSKD (ORCPT ); Thu, 18 Apr 2019 14:10:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 7EEB320675; Thu, 18 Apr 2019 18:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611003; bh=ZObmM1XzK+zWcXPLL2bsqkgrYt+3yMH/6KbpDD5u7Y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TSGDwHYbHavNk19WrnGBqA8o4JjRANNUh6j1KV88ikJYjCb66fPRgey0JmhWI8q2+ bma9RpxrLOrewCNQD/+D7fm/JxZMgMeDUUXR4nYTmcXdEsM5Wn98gyzuSiz22Jtyye PJfc84Xg9PB1utxELRLasAVzTpFMcbGRk+lKClS4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marian Mihailescu , Marek Szyprowski , Krzysztof Kozlowski , Zhang Rui , Sasha Levin Subject: [PATCH 5.0 21/93] thermal: samsung: Fix incorrect check after code merge Date: Thu, 18 Apr 2019 19:56:59 +0200 Message-Id: <20190418160438.906381680@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 3b5236cc5d086dd3ddd01113ee9255421aab9fab ] Merge commit 19785cf93b6c ("Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal") broke the code introduced by commit ffe6e16f14fa ("thermal: exynos: Reduce severity of too early temperature read"). Restore the original code from the mentioned commit to finally fix the warning message during boot: thermal thermal_zone0: failed to read out thermal zone (-22) Reported-by: Marian Mihailescu Signed-off-by: Marek Szyprowski Fixes: 19785cf93b6c ("Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Zhang Rui Signed-off-by: Sasha Levin --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 48eef552cba4..fc9399d9c082 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -666,7 +666,7 @@ static int exynos_get_temp(void *p, int *temp) struct exynos_tmu_data *data = p; int value, ret = 0; - if (!data || !data->tmu_read || !data->enabled) + if (!data || !data->tmu_read) return -EINVAL; else if (!data->enabled) /* -- 2.19.1