]> git.sur5r.net Git - u-boot/commitdiff
driver: gpio: hikey: Fix pointer conversion warnings for hikey
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Sun, 25 Oct 2015 07:48:12 +0000 (13:18 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 20:58:59 +0000 (15:58 -0500)
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;

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
arch/arm/include/asm/arch-hi6220/gpio.h

index 4fafaef5d55c015c27bb46d62e3c0fa7348fafad..29ace17ab8b28367a419c0fcb0c9bb8ed94ea65b 100644 (file)
@@ -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_ */