From: Viresh Kumar Date: Thu, 14 Jun 2018 05:23:34 +0000 (+0530) Subject: PM / Domains: Fix return value of of_genpd_opp_to_performance_state() X-Git-Tag: v4.18-rc3~19^2^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5e03aa61a7f3cb99852bc3ad6925f5fa3c0dcc93;p=linux-block.git 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 Acked-by: Ulf Hansson Signed-off-by: Rafael J. Wysocki --- 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)