diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2019-01-30 18:17:23 +0100 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2019-03-27 12:18:53 +0100 |
commit | d20edbc85ae24e9ec178370a4983e65ef7d83e02 (patch) | |
tree | 2a3ea2237d649642b35c138f08b101c5546ce9fc | |
parent | 4625551527e673d59d74a2e0f0483ae85dcdb207 (diff) | |
download | linux-exynos-d20edbc85ae24e9ec178370a4983e65ef7d83e02.tar.gz linux-exynos-d20edbc85ae24e9ec178370a4983e65ef7d83e02.tar.bz2 linux-exynos-d20edbc85ae24e9ec178370a4983e65ef7d83e02.zip |
soc: samsung: asv: Print error code when adding an OPP fails
Log error code from devm_pm_opp_add() to make any errors easier
to debug.
Change-Id: If418320565f1efc14d16242d8b166bea07353c54
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
-rw-r--r-- | drivers/soc/samsung/exynos-asv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/samsung/exynos-asv.c b/drivers/soc/samsung/exynos-asv.c index 611c3740fb38..71fa32f237ab 100644 --- a/drivers/soc/samsung/exynos-asv.c +++ b/drivers/soc/samsung/exynos-asv.c @@ -78,8 +78,8 @@ int exynos_asv_update_cpu_opp(struct device *cpu) err = dev_pm_opp_add(cpu, opp_freq, new_voltage); if (err < 0) - pr_err("%s: Failed to add OPP %u Hz/%u uV for cpu%d\n", - __func__, opp_freq, new_voltage, cpu->id); + pr_err("%s: Failed to add OPP %u Hz/%u uV for cpu%d (%d)\n", + __func__, opp_freq, new_voltage, cpu->id, err); } return 0; |