diff options
author | Yu Chien Peter Lin <peterlin@andestech.com> | 2023-02-06 11:10:53 +0300 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2023-02-17 14:07:48 +0300 |
commit | da24626d147cdd04e84f88c0196a0131fa22cee7 (patch) | |
tree | 31d23494a9df8578b058fb3902570dc472790845 /drivers | |
parent | f29834d150f9650c7d38dac62f601444e9a31238 (diff) | |
download | u-boot-da24626d147cdd04e84f88c0196a0131fa22cee7.tar.xz |
driver: cache-v5l2: Fix type casting warning on RV32
This patch fixes following warning for the riscv32 toolchain.
drivers/cache/cache-v5l2.c:122:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
122 | regs = (struct l2cache *)dev_read_addr(dev);
| ^
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cache/cache-v5l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c index c6d3a8f893..eda07d3f29 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-v5l2.c @@ -119,7 +119,7 @@ static int v5l2_of_to_plat(struct udevice *dev) struct v5l2_plat *plat = dev_get_plat(dev); struct l2cache *regs; - regs = (struct l2cache *)dev_read_addr(dev); + regs = (struct l2cache *)(uintptr_t)dev_read_addr(dev); plat->regs = regs; plat->iprefetch = -EINVAL; |