PM / Domains: Fix return value of of_genpd_opp_to_performance_state()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 14 Jun 2018 05:23:34 +0000 (10:53 +0530)
committerRafael 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

index 9206a4fef9ac151905a825700c6ae7477d7cbd88..139f79c8477a354ff122da94aaf6fc77ecfd0922 100644 (file)
@@ -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)