[U-Boot] [PATCH] core: do not fail in device_probe() when clk set default fail

Kever Yang kever.yang at rock-chips.com
Sun Feb 25 10:24:35 UTC 2018


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 <kever.yang at rock-chips.com>
---

 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



More information about the U-Boot mailing list