Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: uniphier: continue probing even if some clocks fail to register

Do not let the entire probe function fail even if some clocks fail
to register. Let's continue with succeeded clocks. This will give
the system more chances to boot and allow us to investigate the
cause of the failure.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Masahiro Yamada and committed by
Stephen Boyd
f080a493 645ebb1d

+2 -5
+2 -5
drivers/clk/uniphier/clk-uniphier-core.c
··· 90 90 91 91 dev_dbg(dev, "register %s (index=%d)\n", p->name, p->idx); 92 92 hw = uniphier_clk_register(dev, regmap, p); 93 - if (IS_ERR(hw)) { 94 - dev_err(dev, "failed to register %s (error %ld)\n", 95 - p->name, PTR_ERR(hw)); 96 - return PTR_ERR(hw); 97 - } 93 + if (WARN(IS_ERR(hw), "failed to register %s", p->name)) 94 + continue; 98 95 99 96 if (p->idx >= 0) 100 97 hw_data->hws[p->idx] = hw;