From patchwork Thu Jan 28 08:20:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 60678 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp331521lbb; Thu, 28 Jan 2016 00:21:40 -0800 (PST) X-Received: by 10.98.89.215 with SMTP id k84mr2750849pfj.66.1453969299964; Thu, 28 Jan 2016 00:21:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v78si15335278pfa.239.2016.01.28.00.21.39; Thu, 28 Jan 2016 00:21:39 -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; 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965509AbcA1IVa (ORCPT + 30 others); Thu, 28 Jan 2016 03:21:30 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34464 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965351AbcA1IVT (ORCPT ); Thu, 28 Jan 2016 03:21:19 -0500 Received: by mail-pa0-f53.google.com with SMTP id uo6so19918021pac.1 for ; Thu, 28 Jan 2016 00:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=/QUre4NUu77fO8iVTEphIuehXpGsEuHqoB3N9tG1R8U=; b=ANucYmI7STAclS12yHqk8Gm5VXYYdAm8S0/WiNnO0r0RAAmZWW7HBBQdmbF2dgE0mx LWfVawDywZRN/OMLE9UKwX0w6eDr+zisj3Iy2Nytysw/EufjxUqNONXaRX6Jwm0epyKt Ca5kg3lVMv1/HVSN3xrWSAUIeBKj4Yh7pj5aY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=/QUre4NUu77fO8iVTEphIuehXpGsEuHqoB3N9tG1R8U=; b=MdTdtmmonXA7r7Qm2d+CPyMACpy0eYbCkcjFHE959+2yFz9MWEip6WSLYVSYZwV7x2 0NCYx5Uon0jjBm8AZsBZ9ogPVbOIVyvLTo3k0ivndd1il2MTBAf1j5Pn2L/3LLb9H5Of f+sey5qdj0BB732s0Tw27+N7lh/o6v6TToxtUYf+RAt1G4UQ+KXdLl7sq2SEeqY0yRmf ZGJX7gKWJGVlVpCDT4z2LISHxINfKEBg3BuYVwoLUbIxd+SbYPzoC9m6PQKjna/PJvRK foD03EPY6qcpriV1PLRhd1e1WroTwjS+OnIFZNsbKuRS1ocRe672GDjQeHouwR9in/OE nxtw== X-Gm-Message-State: AG10YORRFDGBn0BCDVlf1aPabww8ejAFkohyhjHOgHOsiUjgta4q9fawfsSzzx/67A7SUvVW X-Received: by 10.66.150.66 with SMTP id ug2mr2754790pab.114.1453969278563; Thu, 28 Jan 2016 00:21:18 -0800 (PST) Received: from localhost ([122.171.121.234]) by smtp.gmail.com with ESMTPSA id ty5sm14160748pac.48.2016.01.28.00.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2016 00:21:17 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Stephen Boyd , nm@ti.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 08/16] cpufreq: dt: Convert few pr_debug/err() calls to dev_dbg/err() Date: Thu, 28 Jan 2016 13:50:37 +0530 Message-Id: X-Mailer: git-send-email 2.7.0.79.gdc08a19 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have the device structure available now, lets use it for better print messages. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/cpufreq/cpufreq-dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.0.79.gdc08a19 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 0ca74d070058..ace0168274d4 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -246,7 +246,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) */ ret = dev_pm_opp_get_opp_count(cpu_dev); if (ret <= 0) { - pr_debug("OPP table is not ready, deferring probe\n"); + dev_dbg(cpu_dev, "OPP table is not ready, deferring probe\n"); ret = -EPROBE_DEFER; goto out_free_opp; } @@ -325,7 +325,7 @@ static int cpufreq_init(struct cpufreq_policy *policy) ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); if (ret) { - pr_err("failed to init cpufreq table: %d\n", ret); + dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret); goto out_free_priv; }