]> git.baikalelectronics.ru Git - kernel.git/commit
opp: Don't ignore clk_get() errors other than -ENOENT
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 Jan 2021 10:42:04 +0000 (16:12 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 05:00:53 +0000 (10:30 +0530)
commitd86c4be37885d6fb4eeb8ffc468e6e1c39118220
tree34a9173a10273773ed8830cc733900b68f7276dc
parent38150196589a0e4b2f7545e91315521b79177d36
opp: Don't ignore clk_get() errors other than -ENOENT

Not all devices that need to use OPP core need to have clocks, a missing
clock is fine in which case -ENOENT shall be returned by clk_get().

Anything else is an error and must be handled properly.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c