diff options
| author | Anup Patel <[email protected]> | 2023-07-11 09:00:31 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-07-19 11:51:59 +0530 |
| commit | 057eb10b6d523540012e6947d5c9f63e95244e94 (patch) | |
| tree | 017efec7edb49660748f5938b2bebf72adc9c59c /docs/external | |
| parent | c6a35733b74aeff612398f274ed19a74f81d1f37 (diff) | |
lib: utils/gpio: Fix RV32 compile error for designware GPIO driverv1.3.1release-1.3.x
Currently, we see following compile error in the designeware GPIO driver
for RV32 systems:
lib/utils/gpio/fdt_gpio_designware.c:115:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
115 | chip->dr = (void *)addr + (bank * 0xc);
| ^
lib/utils/gpio/fdt_gpio_designware.c:116:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
116 | chip->ext = (void *)addr + (bank * 4) + 0x50;
We fix the above error using an explicit type-cast to 'unsigned long'.
Fixes: 7828eebaaa77 ("gpio/desginware: add Synopsys DesignWare APB GPIO support")
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Diffstat (limited to 'docs/external')
0 files changed, 0 insertions, 0 deletions
