Skip to content

Commit

Permalink
ARM: EXYNOS: Use dev_err() instead of printk() for cpuidle driver
Browse files Browse the repository at this point in the history
Change raw printk() call to dev_err() to provide a better message
to userspace so it can properly identify the device.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Jingoo Han authored and Rafael J. Wysocki committed Oct 30, 2013
1 parent e240145 commit ae7c4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-exynos/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static int __init exynos_cpuidle_probe(struct platform_device *pdev)

ret = cpuidle_register_driver(&exynos4_idle_driver);
if (ret) {
printk(KERN_ERR "CPUidle failed to register driver\n");
dev_err(&pdev->dev, "failed to register cpuidle driver\n");
return ret;
}

Expand All @@ -220,7 +220,7 @@ static int __init exynos_cpuidle_probe(struct platform_device *pdev)

ret = cpuidle_register_device(device);
if (ret) {
printk(KERN_ERR "CPUidle register device failed\n");
dev_err(&pdev->dev, "failed to register cpuidle device\n");
return ret;
}
}
Expand Down

0 comments on commit ae7c4c8

Please sign in to comment.