]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: at91: use dev_read_addr() to get base address
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Aug 2020 05:14:41 +0000 (14:14 +0900)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2020 14:51:44 +0000 (08:51 -0600)
commit0cbf3e08fc735b54e7918138e73b34870a213333
tree946a30ca588b7660eddf0dc9207bb458a0472a90
parent6e64830f0bca623180d5d1667df02c288616ea5c
gpio: at91: use dev_read_addr() to get base address

It is strange to use devfdt_get_addr_ptr(), then cast the pointer
back to uint32 because you could use devfdt_get_addr() without casting.

Convert it to dev_read_addr(), which is capable to CONFIG_OF_LIVE.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/at91_gpio.c