diff mbox

cpufreq: cpufreq-dt: Fix arguments in clock failure error message

Message ID 1414759173-4664-1-git-send-email-a.kesavan@samsung.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Abhilash Kesavan Oct. 31, 2014, 12:39 p.m. UTC
Fix the swapped arguments in the clock failure dev_err.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
---
 drivers/cpufreq/cpufreq-dt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Rafael J. Wysocki Nov. 8, 2014, 1:37 a.m. UTC | #1
On Friday, October 31, 2014 06:09:33 PM Abhilash Kesavan wrote:
> Fix the swapped arguments in the clock failure dev_err.
> 
> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>

Applied, thanks!

> ---
>  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;
>
diff mbox

Patch

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;