Commit 5e03aa61 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

PM / Domains: Fix return value of of_genpd_opp_to_performance_state()

of_genpd_opp_to_performance_state() should return 0 for errors, but the
dummy routine isn't doing that. Fix it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 7daf201d
...@@ -276,7 +276,7 @@ static inline unsigned int ...@@ -276,7 +276,7 @@ static inline unsigned int
of_genpd_opp_to_performance_state(struct device *dev, of_genpd_opp_to_performance_state(struct device *dev,
struct device_node *opp_node) struct device_node *opp_node)
{ {
return -ENODEV; return 0;
} }
static inline int genpd_dev_pm_attach(struct device *dev) static inline int genpd_dev_pm_attach(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment