mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Leo Yu-Chi Liang
parent
f29834d150
commit
da24626d14
2
drivers/cache/cache-v5l2.c
vendored
2
drivers/cache/cache-v5l2.c
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user