diff options
author | Marek Vasut | 2024-04-26 01:02:07 +0200 |
---|---|---|
committer | Fabio Estevam | 2024-05-05 11:21:39 -0300 |
commit | 591257b05caba725eb57ceb174317ab4c7e460a7 (patch) | |
tree | 8e063a61eb4072220e3a20574f15b46f2edc51a2 /net | |
parent | 2f1e76bcfee75b9f99ade63002c05ffaaec86afb (diff) |
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 'net')
-rw-r--r-- | net/net_rand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net_rand.h b/net/net_rand.h index d3c5559adfd..686e85f2b53 100644 --- a/net/net_rand.h +++ b/net/net_rand.h @@ -42,7 +42,7 @@ static inline void srand_mac(void) 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)); |