u-boot/drivers/clk/sifive
Bin Meng 2edb02ead7 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>
2021-10-20 10:59:09 +08:00
..
fu540-prci.c drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00
fu540-prci.h drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00
fu740-prci.c drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux' 2021-07-06 13:47:33 +08:00
fu740-prci.h drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00
Kconfig drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00
Makefile drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00
sifive-prci.c clk: sifive: Fix -Wint-to-pointer-cast warning 2021-10-20 10:59:09 +08:00
sifive-prci.h drivers: clk: add fu740 support 2021-05-31 16:35:54 +08:00