diff options
| author | Peng Fan <[email protected]> | 2026-05-26 15:52:18 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-09 14:53:34 -0600 |
| commit | ebb9ee6ef48015d58a08ed8c8e21ad4cd4041e2b (patch) | |
| tree | a2a22ee0d70f6f68079bad1eb0aaaf5fdf4dbb23 /drivers | |
| parent | 8e4414d1a9832f640ffedbf90c42c99e2e7b0fa2 (diff) | |
rng: rproc_rng200: Use dev_remap_addr()
Use dev_remap_addr() which supports both live device tree and flat DT
backends, avoiding direct dependency on devfdt_* helpers.
And only mapping sizeof(void *) is wrong, RNG_FIFO_COUNT_OFFSET(0x24) is
accessed in this driver. So dev_remap_addr() could also fix the mapping
size.
No functional changes.
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/rng/iproc_rng200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rng/iproc_rng200.c b/drivers/rng/iproc_rng200.c index 4c49aa9e444..aa211df28cd 100644 --- a/drivers/rng/iproc_rng200.c +++ b/drivers/rng/iproc_rng200.c @@ -155,7 +155,7 @@ static int iproc_rng200_of_to_plat(struct udevice *dev) { struct iproc_rng200_plat *pdata = dev_get_plat(dev); - pdata->base = devfdt_map_physmem(dev, sizeof(void *)); + pdata->base = dev_remap_addr(dev); if (!pdata->base) return -ENODEV; |
