projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c315d8
)
PM / devfreq: exynos-bus: Add error log when fail to get devfreq-event
author
Yangtao Li
<tiny.windzz@gmail.com>
Tue, 24 Dec 2019 14:49:54 +0000
(14:49 +0000)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 30 Dec 2019 00:59:06 +0000
(09:59 +0900)
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>
drivers/devfreq/exynos-bus.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/exynos-bus.c
b/drivers/devfreq/exynos-bus.c
index 1259a0da7db71e5f2dd1a008da29ad3ec77da52c..8fa8eb5413732fa7bab5df8e344b4a76d8597d3d 100644
(file)
--- 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;
}