forked from Minki/linux
ARM: EXYNOS: Use dev_err() instead of printk() for cpuidle driver
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>
This commit is contained in:
parent
e240145311
commit
ae7c4c8780
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user