Skip to content
Snippets Groups Projects
Commit 4e4ad6d1 authored by Prabhakar Kushwaha's avatar Prabhakar Kushwaha Committed by Tom Rini
Browse files

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;

Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
parent 5e0efc1b
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ struct gpio_bank { ...@@ -21,7 +21,7 @@ struct gpio_bank {
/* Information about a GPIO bank */ /* Information about a GPIO bank */
struct hikey_gpio_platdata { struct hikey_gpio_platdata {
int bank_index; int bank_index;
unsigned int base; /* address of registers in physical memory */ ulong base; /* address of registers in physical memory */
}; };
#endif /* _HI6220_GPIO_H_ */ #endif /* _HI6220_GPIO_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment