mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
gpio: da8xx_gpio: Fix compiler warning
Fix below compiler warning for 64bit builds drivers/gpio/da8xx_gpio.c: In function ‘davinci_get_gpio_bank’: drivers/gpio/da8xx_gpio.c:446:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct davinci_gpio *)addr; Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
05ef2cdd2b
commit
94f992d57a
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ int gpio_set_value(unsigned int gpio, int value)
|
|||
static struct davinci_gpio *davinci_get_gpio_bank(struct udevice *dev, unsigned int offset)
|
||||
{
|
||||
struct davinci_gpio_bank *bank = dev_get_priv(dev);
|
||||
unsigned int addr;
|
||||
unsigned long addr;
|
||||
|
||||
/*
|
||||
* The device tree is not broken into banks but the infrastructure is
|
||||
|
|
Loading…
Add table
Reference in a new issue