summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-12-24 14:49:54 +0000
committerChanwoo Choi <cw00.choi@samsung.com>2019-12-30 09:59:06 +0900
commit28135762b83ab5767fecafb997f2dc760b7d2739 (patch)
tree1809fa67fb547aa5b195a1fb512e35aaa13487ed /drivers/devfreq
parent6c315d8fe3c931e1f2e7c34c8d81d6016db8f978 (diff)
downloadlinux-28135762b83ab5767fecafb997f2dc760b7d2739.tar.gz
linux-28135762b83ab5767fecafb997f2dc760b7d2739.tar.bz2
linux-28135762b83ab5767fecafb997f2dc760b7d2739.zip
PM / devfreq: exynos-bus: Add error log when fail to get devfreq-event
Adding an error log makes it easier to trace the function's error path. Because the error code may be rewritten on return, print error code here. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/exynos-bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 1259a0da7db7..8fa8eb541373 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -126,6 +126,7 @@ static int exynos_bus_get_dev_status(struct device *dev,
ret = exynos_bus_get_event(bus, &edata);
if (ret < 0) {
+ dev_err(dev, "failed to get event from devfreq-event devices\n");
stat->total_time = stat->busy_time = 0;
goto err;
}