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)
commitd4a4c7a41153d701f23322ea5d39c766e9ff6eee
tree34a9173a10273773ed8830cc733900b68f7276dc
parent870d5d963972ddefa83a09a7dbe4bef01f0b35b8
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