]> git.dujemihanovic.xyz Git - u-boot.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)
commit5a07cf5e7ae8cfe1266ef4fc445c947cb649a081
treeff6c3de5c9bf657bf67a1b76207eed95a7a04723
parent84b4221cffa805ab525be9a2d580f40f6d9a0243
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