projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd664cc
)
cpufreq: OMAP: Check IS_ERR() instead of NULL for omap_device_get_by_hwmod_name
author
Axel Lin
<axel.lin@gmail.com>
Wed, 19 Sep 2012 20:00:10 +0000
(22:00 +0200)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Wed, 19 Sep 2012 20:00:10 +0000
(22:00 +0200)
omap_device_get_by_hwmod_name() returns ERR_PTR on error.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/cpufreq/omap-cpufreq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/cpufreq/omap-cpufreq.c
b/drivers/cpufreq/omap-cpufreq.c
index 6e22f4481c07ce370b15fc6ef4ae356dcee00f6a..65f8e9a54975e8274c9de6403718f5ff39ee2e85 100644
(file)
--- a/
drivers/cpufreq/omap-cpufreq.c
+++ b/
drivers/cpufreq/omap-cpufreq.c
@@
-266,9
+266,9
@@
static int __init omap_cpufreq_init(void)
}
mpu_dev = omap_device_get_by_hwmod_name("mpu");
- if (
!mpu_dev
) {
+ if (
IS_ERR(mpu_dev)
) {
pr_warning("%s: unable to get the mpu device\n", __func__);
- return
-EINVAL
;
+ return
PTR_ERR(mpu_dev)
;
}
mpu_reg = regulator_get(mpu_dev, "vcc");