]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Detect failure to set defaults
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:31 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:40 +0000 (18:42 -0400)
commit07a87044071d40723a1117c33becd9be6d0d1241
treef9a82b53c030349b558fbb1319c27a0988c9bf91
parentd6d0e2f49ddf3805975c6021b35a51833529bb92
clk: Detect failure to set defaults

When the default clocks cannot be set, the clock is silently probed and
the error is ignored. This is incorrect, since having the clocks at the
correct speed may be important for operation of the system.

Fix it by checking the return code.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c