]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
clk: uniphier: continue probing even if some clocks fail to register
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 18 Jan 2017 12:31:19 +0000 (21:31 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 26 Jan 2017 23:52:54 +0000 (15:52 -0800)
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>
drivers/clk/uniphier/clk-uniphier-core.c

index 0007218ce6a08d8f5874ec7aa1f312d06c87be1d..2cf386347f0c8ba26e0436d5fb6e240ff06289f3 100644 (file)
@@ -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;