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.

Signed-off-by: Kever Yang <[email protected]>
---

 drivers/core/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/core/device.c b/drivers/core/device.c
index 9d58f44..71872e9 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -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", ret);
 
        if (drv->probe) {
                ret = drv->probe(dev);
-- 
1.9.1

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to