projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PM / devfreq: Add missing error code in devfreq_add_device()
[linux-2.6-microblaze.git]
/
drivers
/
devfreq
/
devfreq.c
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index
fe08c46
..
28f3e0b
100644
(file)
--- a/
drivers/devfreq/devfreq.c
+++ b/
drivers/devfreq/devfreq.c
@@
-823,6
+823,7
@@
struct devfreq *devfreq_add_device(struct device *dev,
if (devfreq->profile->timer < 0
|| devfreq->profile->timer >= DEVFREQ_TIMER_NUM) {
mutex_unlock(&devfreq->lock);
+ err = -EINVAL;
goto err_dev;
}