]> git.baikalelectronics.ru Git - uboot.git/commit
ram: sifive: Fix -Wint-to-pointer-cast warnings
authorBin Meng <bmeng.cn@gmail.com>
Sun, 12 Sep 2021 03:15:15 +0000 (11:15 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 20 Oct 2021 02:59:09 +0000 (10:59 +0800)
commit50a44d14f99a83e28b8dc72a07b97e300b951e21
treeea1938cb795cafd60487d2caac78129b507e2c5e
parente9bdc1081fc44a5170bdfffdeb9f8e37bc4a641d
ram: sifive: Fix -Wint-to-pointer-cast warnings

The following warning is seen in sifive_ddr.c in a 32-bit build:

  warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Change to use dev_read_addr_index_ptr().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/ram/sifive/sifive_ddr.c