Skip to content

Commit

Permalink
PM / devfreq: exynos-bus: Add error log when fail to get devfreq-event
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
TinyWindzz authored and chanwoochoi committed Dec 30, 2019
1 parent 6c315d8 commit 2813576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/devfreq/exynos-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2813576

Please sign in to comment.