commit | d0dcb7508288475ff26c542f7493889a6e9fd338 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Sun Sep 12 11:15:09 2021 +0800 |
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | Wed Oct 20 10:59:09 2021 +0800 |
tree | fda4b7c5d57503abbcdf1665cb7c82a4000bebea | |
parent | 9f50173365213c69f20d7754adbb013290a03a65 [diff] |
clk: 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 pd->va is a pointer. In a 32-bit build, this causes the following warning seen when building sifive-prci.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 <bmeng.cn@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>