diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-01-18 15:31:19 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-01-27 02:52:54 +0300 |
commit | f080a493860094a79c613bf64b7d6e0444896e3f (patch) | |
tree | 09ac4f7068363641fff0e9aea9419fe04b298885 /drivers/clk/uniphier | |
parent | 645ebb1daa6c7d26a0ad5c7e919e3ed907956a51 (diff) | |
download | linux-f080a493860094a79c613bf64b7d6e0444896e3f.tar.xz |
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>
Diffstat (limited to 'drivers/clk/uniphier')
-rw-r--r-- | drivers/clk/uniphier/clk-uniphier-core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index 0007218ce6a0..2cf386347f0c 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -90,11 +90,8 @@ static int uniphier_clk_probe(struct platform_device *pdev) dev_dbg(dev, "register %s (index=%d)\n", p->name, p->idx); hw = uniphier_clk_register(dev, regmap, p); - if (IS_ERR(hw)) { - dev_err(dev, "failed to register %s (error %ld)\n", - p->name, PTR_ERR(hw)); - return PTR_ERR(hw); - } + if (WARN(IS_ERR(hw), "failed to register %s", p->name)) + continue; if (p->idx >= 0) hw_data->hws[p->idx] = hw; |