diff options
author | Marek Vasut <marex@denx.de> | 2022-01-01 19:51:39 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-07 09:30:45 -0500 |
commit | 75f080df46f28f24a617652c8af028cc349f908b (patch) | |
tree | 4306307c8f9955c56861127d1f5adad54ebec80b /drivers/clk | |
parent | 392aa4ba96ba1197665f95f96c087a893a6d3610 (diff) | |
download | u-boot-75f080df46f28f24a617652c8af028cc349f908b.tar.gz u-boot-75f080df46f28f24a617652c8af028cc349f908b.tar.bz2 u-boot-75f080df46f28f24a617652c8af028cc349f908b.zip |
Revert "clk: Detect failure to set defaults"
This reverts commit 92f1e9a4b31c0bf0f4f61ab823a6a88657323646.
The aforementioned patch causes massive breakage on all platforms which
have 'assigned-clock' DT property in their DT which references any clock
that are not supported by the platform clock driver. That can easily
happen either in SPL, or because the clock driver is reduced. Currently
it seems all iMX8M are affected and fail to boot altogether.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Peng Fan <peng.fan@oss.nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-uclass.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index f2d2642754..094b1abf13 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -846,17 +846,13 @@ void devm_clk_put(struct udevice *dev, struct clk *clk) int clk_uclass_post_probe(struct udevice *dev) { - int ret; - /* * when a clock provider is probed. Call clk_set_defaults() * also after the device is probed. This takes care of cases * where the DT is used to setup default parents and rates * using assigned-clocks */ - ret = clk_set_defaults(dev, CLK_DEFAULTS_POST); - if (ret) - return log_ret(ret); + clk_set_defaults(dev, CLK_DEFAULTS_POST); return 0; } |