diff options
author | Marek Vasut <marex@denx.de> | 2024-04-26 01:02:07 +0200 |
---|---|---|
committer | Fabio Estevam <festevam@denx.de> | 2024-05-05 11:21:39 -0300 |
commit | 591257b05caba725eb57ceb174317ab4c7e460a7 (patch) | |
tree | 8e063a61eb4072220e3a20574f15b46f2edc51a2 /lib | |
parent | 2f1e76bcfee75b9f99ade63002c05ffaaec86afb (diff) | |
download | u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.tar.gz u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.tar.bz2 u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.zip |
rng: Introduce SPL_DM_RNG
Add SPL variant of DM_RNG so that the DM_RNG can be disabled in SPL
if necessary. This may be necessary due to e.g. size constraints of
the SPL.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uuid.c b/lib/uuid.c index 2d7d99535e..dfa2320ba2 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -378,7 +378,7 @@ void gen_rand_uuid(unsigned char *uuid_bin) struct udevice *devp; u32 randv = 0; - if (IS_ENABLED(CONFIG_DM_RNG)) { + if (CONFIG_IS_ENABLED(DM_RNG)) { ret = uclass_get_device(UCLASS_RNG, 0, &devp); if (!ret) { ret = dm_rng_read(devp, &randv, sizeof(randv)); |