diff options
| author | Bin Meng <[email protected]> | 2021-09-12 11:15:10 +0800 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2021-10-20 10:59:09 +0800 |
| commit | d710c7e84187088cb157ab4131ca50a1236a931a (patch) | |
| tree | 63acff9f1d7f5f767d89123d1b47f6ddb31d087e /include/linux | |
| parent | 2edb02ead760630a6495d4e583e2364d10cb850a (diff) | |
gpio: sifive: Fix -Wint-to-pointer-cast warning
dev_read_addr() returns a value of type fdt_addr_t which is a 64-bit
address and plat->base is a pointer. In a 32-bit build, this causes the
following warning seen when building sifive-gpio.c:
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Change to use dev_read_addr_ptr().
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
