core: do not fail in device_probe() when clk set default fail

Assigned clocks are widely used in kernel, but not in U-Boot yet,
many U-Boot clock driver do not have the API while dts port from kernel
have "assigned-clocks" node.

Just give a warning now instead of a device probe fail.

Change-Id: Icc1da8bdd1a21d6d118e37d305bd7909758c40b2
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2018-02-25 18:17:51 +08:00
parent b15a08dd68
commit 55e9fafcca
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ int device_probe(struct udevice *dev)
/* Process 'assigned-{clocks/clock-parents/clock-rates}' properties */
ret = clk_set_defaults(dev);
if (ret)
goto fail;
debug("%s clk_set_defaults failed %d\n", __func__, ret);
if (drv->probe) {
ret = drv->probe(dev);