projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7daf201
)
PM / Domains: Fix return value of of_genpd_opp_to_performance_state()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 14 Jun 2018 05:23:34 +0000
(10:53 +0530)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 25 Jun 2018 07:40:36 +0000
(09:40 +0200)
of_genpd_opp_to_performance_state() should return 0 for errors, but the
dummy routine isn't doing that. Fix it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm_domain.h
patch
|
blob
|
history
diff --git
a/include/linux/pm_domain.h
b/include/linux/pm_domain.h
index 9206a4fef9ac151905a825700c6ae7477d7cbd88..139f79c8477a354ff122da94aaf6fc77ecfd0922 100644
(file)
--- a/
include/linux/pm_domain.h
+++ b/
include/linux/pm_domain.h
@@
-276,7
+276,7
@@
static inline unsigned int
of_genpd_opp_to_performance_state(struct device *dev,
struct device_node *opp_node)
{
- return
-ENODEV
;
+ return
0
;
}
static inline int genpd_dev_pm_attach(struct device *dev)