Skip to contentSkip to conversation

driver: gpio: hikey: Fix pointer conversion warnings for hikey

PATCH New Prabhakar Kushwaha 2 participants 2 messages Oct 25, 2015 – Nov 13, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 driver: gpio: hikey: Fix pointer conversion warnings for hikey

Fix below compilation warnings-
drivers/gpio/hi6220_gpio.c: In function ?hi6220_gpio_probe?:
drivers/gpio/hi6220_gpio.c:82:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
bank->base = (u8 *)plat->base;

---
 arch/arm/include/asm/arch-hi6220/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-hi6220/gpio.h +1 -1
index 4fafaef..29ace17 100644
@@ -21,7 +21,7 @@ struct gpio_bank {
 /* Information about a GPIO bank */
 struct hikey_gpio_platdata {
 	int bank_index;
-	unsigned int base;     /* address of registers in physical memory */
+	ulong base;     /* address of registers in physical memory */
 };
 
 #endif /* _HI6220_GPIO_H_ */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/5 driver: gpio: hikey: Fix pointer conversion warnings for hikey

Quoted 7 lines · Prabhakar Kushwaha

Fix below compilation warnings-
drivers/gpio/hi6220_gpio.c: In function ?hi6220_gpio_probe?:
drivers/gpio/hi6220_gpio.c:82:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
bank->base = (u8 *)plat->base;

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151112/8b556b75/attachment.sig>