]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: Fix build warning with ARM64
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 16 Aug 2018 13:11:49 +0000 (18:41 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 00:48:20 +0000 (20:48 -0400)
commit832b5ff48da53993c43221b36c8c024cb5e4d816
treeff6c3de5c9bf657bf67a1b76207eed95a7a04723
parent2e4f7bc0151510f9df432071820f7c0783eb72ed
pinctrl: Fix build warning with ARM64

Following build warning appears when pinctrl-single is built for ARM64:

In file included from drivers/pinctrl/pinctrl-single.c:10:0:
drivers/pinctrl/pinctrl-single.c: In function ‘single_configure_pins’:
./arch/arm/include/asm/io.h:43:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define __arch_getw(a)   (*(volatile unsigned short *)(a))

Fix this by using phys_addr_t for variable reg instead of u32

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/pinctrl/pinctrl-single.c