summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-09-28 08:26:34 -0400
committerTom Rini <trini@konsulko.com>2020-09-28 08:26:34 -0400
commit114c0ebcc10b8a0118d388adcb028b89fbde0eff (patch)
treeee11fdea8c8010bb07eb5451daac13f34e717cb7 /drivers
parent253388acd6d0d52205ed9a32282f990e055bb87d (diff)
parent02d249f99ecb7e398067d91760287c61d35fd34b (diff)
Merge tag 'u-boot-amlogic-20200928' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- fix RNG driver probe & linux EFI KASLR boot on GXL, GXM, G12A, G12B & SM1 based boards
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rng/meson-rng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rng/meson-rng.c b/drivers/rng/meson-rng.c
index 4b81a62353..57a5a702a2 100644
--- a/drivers/rng/meson-rng.c
+++ b/drivers/rng/meson-rng.c
@@ -90,8 +90,9 @@ static int meson_rng_ofdata_to_platdata(struct udevice *dev)
if (!pdata->base)
return -ENODEV;
+ /* Get optional "core" clock */
err = clk_get_by_name(dev, "core", &pdata->clk);
- if (err)
+ if (err && err != -ENODATA)
return err;
return 0;