]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Revert "clk: Return value calculated by ERR_PTR"
authorTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 19:24:44 +0000 (13:24 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 19:27:27 +0000 (13:27 -0600)
This reverts commit 644b4650ee57c429bede77f44752cc867dac0e00.

While the intention of the above commit is correct, it leads to test
failures in CI that need to be addressed at the same time.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/clk/clk-uclass.c

index dc01f612ba62be9b80570034b29c5e2bfe3bfa1c..3dbe1ce9441ca513d41be90520ff175c96b4253a 100644 (file)
@@ -199,7 +199,7 @@ static struct clk *clk_set_default_get_by_id(struct clk *clk)
                if (ret) {
                        debug("%s(): could not get parent clock pointer, id %lu\n",
                              __func__, clk->id);
-                       return ERR_PTR(ret);
+                       ERR_PTR(ret);
                }
        }