Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp380040imm; Fri, 1 Jun 2018 02:32:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJa3GOpU+j7UogdE4mgqJ0Q3n82rdpmM/r9gNwX3AesTgSavgpXZ86yghfMNQg5CmH8MkSF X-Received: by 2002:a63:b543:: with SMTP id u3-v6mr3025753pgo.365.1527845545000; Fri, 01 Jun 2018 02:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527845544; cv=none; d=google.com; s=arc-20160816; b=TE/mYbr99CCqgjCxuvU3Sf7rtUNf5m6wmLCpbnB0mfK8ch4Hbcm/tL/xCy5+lAc/+G ZrjuVbWcjTFFXVjOMUMygy+X5TdlpZ1/1T0HLaB1CUKe5wnoKRvYiFPwCt7XSc6xaO+O F5/2rMMJpk0/OlViOAr9BHtXsn0oKrFD+isVivSbLakwx6OKUllnFlYS6xsXjOfxFxOp DckcCXMYfJ696I//BgpjIHVJNJoyTj3DNjl2tIAS5DL+4CQOzmzMPlCDdC1kMlG8h2B5 lJqzk8ziBLNNmvRebIzT89Dc6d0RCkMjGRCiRubRRYkLlQeCeN3QDDw4/jrIljN9JRxJ lgBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6jERd3H6olfSA8l6zX0LnMUQPNrWPHjxFrKobRmFEys=; b=ntlY643X457u2aFT9QPxWMzxldy8BJ9CpmWiiCpMykRixPpVkVj/ZQTMKavOiVashG rcYpGDlBp+TDHAcCa1TrrX7bDHfv3s6b68+RcPbjoSy7/RHueIXFgotdTE9Kvpcgz8wa w0stlyLRIOIdDh+VfHcaZyOGBg7RD7QGgvsiMuoQym4lFtb+0U4/Et4V0pQJiQ15J2ak dCPyp1Cnz5N/ojO250eqVY3jp24wraWswbiz2Op4+/NKo195SdxoV3EgAxxtxQMAd/ji XRZeBRVmd80/OSYBmb0gkSUroNN7Lm233NnXHp8FP7pNUtHf9q5RIAoTOgMHvqkQaIS/ /hJA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si12067000pfi.90.2018.06.01.02.32.10; Fri, 01 Jun 2018 02:32:24 -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; 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 S1751599AbeFAJ3q (ORCPT + 99 others); Fri, 1 Jun 2018 05:29:46 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:48952 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbeFAJ3I (ORCPT ); Fri, 1 Jun 2018 05:29:08 -0400 Received: from ayla.of.borg ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id tMUt1x00l3XaVaC01MUtnN; Fri, 01 Jun 2018 11:29:05 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fOgMf-0007Zu-KZ; Fri, 01 Jun 2018 11:28:53 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1fOgMf-0003BT-Ix; Fri, 01 Jun 2018 11:28:53 +0200 From: Geert Uytterhoeven To: Jia-Ju Bai , Jonathan Corbet , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Eric Anholt , Stefan Wahren , Greg Kroah-Hartman Cc: Sergey Senozhatsky , Petr Mladek , Linus Torvalds , Steven Rostedt , linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/4] thermal: bcm2835: Stop using printk format %pCr Date: Fri, 1 Jun 2018 11:28:20 +0200 Message-Id: <1527845302-12159-3-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527845302-12159-1-git-send-email-geert+renesas@glider.be> References: <1527845302-12159-1-git-send-email-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Printk format "%pCr" will be removed soon, as clk_get_rate() must not be called in atomic context. Replace it by printing the variable that already holds the clock rate. Note that calling clk_get_rate() is safe here, as the code runs in task context. Signed-off-by: Geert Uytterhoeven --- drivers/thermal/broadcom/bcm2835_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index a4d6a0e2e9938190..23ad4f9f21438e45 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -213,8 +213,8 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) rate = clk_get_rate(data->clk); if ((rate < 1920000) || (rate > 5000000)) dev_warn(&pdev->dev, - "Clock %pCn running at %pCr Hz is outside of the recommended range: 1.92 to 5MHz\n", - data->clk, data->clk); + "Clock %pCn running at %lu Hz is outside of the recommended range: 1.92 to 5MHz\n", + data->clk, rate); /* register of thermal sensor and get info from DT */ tz = thermal_zone_of_sensor_register(&pdev->dev, 0, data, -- 2.7.4