diff mbox series

[2/2] PM / Domains: Fix return value of of_genpd_opp_to_performance_state()

Message ID 3d3687c030535189885d84c57dbffb034c4461c2.1528953706.git.viresh.kumar@linaro.org
State New
Headers show
Series None | expand

Commit Message

Viresh Kumar June 14, 2018, 5:23 a.m. UTC
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>

---
 include/linux/pm_domain.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.18.0.rc1.242.g61856ae69a2c

Comments

Ulf Hansson June 14, 2018, 7:14 a.m. UTC | #1
On 14 June 2018 at 07:23, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> 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>


Kind regards
Uffe

> ---

>  include/linux/pm_domain.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> 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)

> --

> 2.18.0.rc1.242.g61856ae69a2c

>
diff mbox series

Patch

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)