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>
This commit is contained in:
Masahiro Yamada 2017-01-18 21:31:19 +09:00 коммит произвёл Stephen Boyd
Родитель 645ebb1daa
Коммит f080a49386
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -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); dev_dbg(dev, "register %s (index=%d)\n", p->name, p->idx);
hw = uniphier_clk_register(dev, regmap, p); hw = uniphier_clk_register(dev, regmap, p);
if (IS_ERR(hw)) { if (WARN(IS_ERR(hw), "failed to register %s", p->name))
dev_err(dev, "failed to register %s (error %ld)\n", continue;
p->name, PTR_ERR(hw));
return PTR_ERR(hw);
}
if (p->idx >= 0) if (p->idx >= 0)
hw_data->hws[p->idx] = hw; hw_data->hws[p->idx] = hw;