Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp380032imm; Fri, 1 Jun 2018 02:32:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKSHNtWfJDkxFeNX9uP3wWbLWqSRTOwu9jk5jFAHp1EXvitWDNHFOTvBWXngDAUQ7M/YWPK X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr10246190pla.287.1527845544431; Fri, 01 Jun 2018 02:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527845544; cv=none; d=google.com; s=arc-20160816; b=ZXKaCSCEh92R5A91SSOVEQ6+aDGUCXoK8GVAJYpqUDZJQPr1E9163ZfhgPpQshjraM h4GLT1bgyAEXh27A9sNUw+wqwDwXIdLD+hGijY0nRqUGaOX8k3DR9q4BVeaeuYMJxTS+ 2kuMRCK8lc/S33MKqmKOrkieg3+3+58Zx30jNtoRP/Ik1egGBD+v6YBbN+d7FYHRKDT0 BZfBLJloyRUKKQ1Otsm+6EM7qAEURq19REibwlFC1Ek9kn2M7jhdCqdZcxeR+y1EQEKW XbAV0A9R01neHZEk5B7kRwk91n3ODtrw/UbyL0LkbM/7l/YPZlWeO+Zhsbk1hQJ6Wa6y JInw== 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=Q4A9+EzEXDh8xMYRCeKeEgDXebKLpR1LTbf2dts8VI0=; b=erRrhVQnr6Yk5HUpJJcDDr+WO/YeWNDCn1zN5BLyAXyTe+2yi8Vrt687Q521v0kdYM vv2ibuubOouzp4jIq0BGRbkty1HnLp974SinUs8/pHq0tk5pCVQ0GqYLUJtE3YSHf+A9 whuo9pEENdMv6+H9vp1SgoMMqRfRzbLMqxn76hPI6806fZ27E8Zd4PeBRjqMZNt8tS2Z yp/cVnG0Yn+6W9Edi9AWCNb9lllvEgqNn5FsR7MKK2AxS5HMYLureU1MZzpXvAFmTPdV Ee4czQGY3qAwPRfSqNOLX9fu+TrfiEwyYz9awZbW8xMTWS1eHUaxCCFLzkCTX48Hze/g 8sSA== 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 s6-v6si30358243pgp.152.2018.06.01.02.32.08; 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 S1751834AbeFAJ3x (ORCPT + 99 others); Fri, 1 Jun 2018 05:29:53 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:48906 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbeFAJ3H (ORCPT ); Fri, 1 Jun 2018 05:29:07 -0400 Received: from ayla.of.borg ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id tMUt1x00o3XaVaC01MUtnP; 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-0007a5-N6; Fri, 01 Jun 2018 11:28:53 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1fOgMf-0003BZ-Jx; 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 3/4] serial: sh-sci: Stop using printk format %pCr Date: Fri, 1 Jun 2018 11:28:21 +0200 Message-Id: <1527845302-12159-4-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 open-coding the operation. This is safe here, as the code runs in task context. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index b46b146524ce7495..c181eb37f98509e6 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2724,8 +2724,8 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev) dev_dbg(dev, "failed to get %s (%ld)\n", clk_names[i], PTR_ERR(clk)); else - dev_dbg(dev, "clk %s is %pC rate %pCr\n", clk_names[i], - clk, clk); + dev_dbg(dev, "clk %s is %pC rate %lu\n", clk_names[i], + clk, clk_get_rate(clk)); sci_port->clks[i] = IS_ERR(clk) ? NULL : clk; } return 0; -- 2.7.4