From patchwork Fri Oct 31 12:39:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 5204241 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CCFDE9F30B for ; Fri, 31 Oct 2014 12:39:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08E342015D for ; Fri, 31 Oct 2014 12:39:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 018A92011E for ; Fri, 31 Oct 2014 12:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758758AbaJaMjx (ORCPT ); Fri, 31 Oct 2014 08:39:53 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:33995 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758182AbaJaMjw (ORCPT ); Fri, 31 Oct 2014 08:39:52 -0400 Received: by mail-pd0-f175.google.com with SMTP id y13so7233005pdi.34 for ; Fri, 31 Oct 2014 05:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=dMdGbe1CoGj1d3+/IwHjTgqqEdr5pAzDA6/d6qsOt/A=; b=rx7bZpoAQjKobXrZ7cLF6uSKqEceqzoNcwf8NBrBv4VI9Db1cYLIWMpS6InuNi+QSd R7JM2476UPB+eEHp9KTZ9Qe2stROSu2qUeRBq+SyTm+Z5bJ4il8CCt8I+V0wUJSaNYYh yQ8GTWVwUtb2Yy8Cj/gJLxqm4DOKtlQQ7rgbbyTVIqd96NODu89xY2tY4Ojy5iLbE+ZU aybXJswv4WJbSi/8TJOIajdqPCDCai1lm72HRfC3tfaO9pdaV08z0gnuTJl0AWbD4vsm waGDc2LwSRfZXLGOH5opVwdBjw24bOubc13N+obXKm5/QDFrz994UIG7CsCZAwQK8cUP bkIw== X-Received: by 10.70.22.195 with SMTP id g3mr24154827pdf.37.1414759192410; Fri, 31 Oct 2014 05:39:52 -0700 (PDT) Received: from localhost.localdomain ([122.171.97.59]) by mx.google.com with ESMTPSA id xr10sm9898220pab.35.2014.10.31.05.39.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Oct 2014 05:39:51 -0700 (PDT) From: Abhilash Kesavan To: viresh.kumar@linaro.org, rjw@rjwysocki.net Cc: kesavan.abhilash@gmail.com, linux-pm@vger.kernel.org Subject: [PATCH] cpufreq: cpufreq-dt: Fix arguments in clock failure error message Date: Fri, 31 Oct 2014 18:09:33 +0530 Message-Id: <1414759173-4664-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 2.1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the swapped arguments in the clock failure dev_err. Signed-off-by: Abhilash Kesavan --- drivers/cpufreq/cpufreq-dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 23aaf40..f657c57 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -166,8 +166,8 @@ try_again: if (ret == -EPROBE_DEFER) dev_dbg(cpu_dev, "cpu%d clock not ready, retry\n", cpu); else - dev_err(cpu_dev, "failed to get cpu%d clock: %d\n", ret, - cpu); + dev_err(cpu_dev, "failed to get cpu%d clock: %d\n", cpu, + ret); } else { *cdev = cpu_dev; *creg = cpu_reg;