summaryrefslogtreecommitdiff
path: root/drivers/rng/meson-rng.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-02-25 11:21:32 -0500
committerTom Rini <trini@konsulko.com>2022-02-25 11:21:32 -0500
commitc6ae38b38967a5c33d729c20e508a03ba3e0e3f6 (patch)
tree031471ee357e75ac3789499b47c40bf15829fb71 /drivers/rng/meson-rng.c
parent5d94cbd1dca78deff57b3ffc2a484cfb70579503 (diff)
parent92a1bba85761e4dd5c0647c48048423bceef4749 (diff)
Merge tag 'clk-2022.04-rc2' of https://source.denx.de/u-boot/custodians/u-boot-clk
Clock patches for v2022.04-rc2 This has an assortment of cleanups and the occasional bugfix. Also present is the addition of the clock subsystem documentation to HTML docs. CI: https://source.denx.de/u-boot/custodians/u-boot-clk/-/pipelines/11075
Diffstat (limited to 'drivers/rng/meson-rng.c')
-rw-r--r--drivers/rng/meson-rng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rng/meson-rng.c b/drivers/rng/meson-rng.c
index 5a4f45ad5af..e0a1e8c7e04 100644
--- a/drivers/rng/meson-rng.c
+++ b/drivers/rng/meson-rng.c
@@ -91,8 +91,8 @@ static int meson_rng_of_to_plat(struct udevice *dev)
return -ENODEV;
/* Get optional "core" clock */
- err = clk_get_by_name(dev, "core", &pdata->clk);
- if (err && err != -ENODATA)
+ err = clk_get_by_name_optional(dev, "core", &pdata->clk);
+ if (err)
return err;
return 0;