diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-06-14 07:23:34 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-06-25 09:40:36 +0200 |
commit | 5e03aa61a7f3cb99852bc3ad6925f5fa3c0dcc93 (patch) | |
tree | 98ae166f179de9ce55c34aae5f0ab3d335135059 /include | |
parent | Linux 4.18-rc2 (diff) | |
download | linux-5e03aa61a7f3cb99852bc3ad6925f5fa3c0dcc93.tar.xz linux-5e03aa61a7f3cb99852bc3ad6925f5fa3c0dcc93.zip |
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: 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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_domain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 9206a4fef9ac..139f79c8477a 100644 --- 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) |