From patchwork Tue Jan 28 10:10:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 240388 List-Id: U-Boot discussion From: faiz_abbas at ti.com (Faiz Abbas) Date: Tue, 28 Jan 2020 15:40:02 +0530 Subject: [PATCH 1/4] gpio: da8xx_gpio: Fix compiler warning In-Reply-To: <20200128101005.18794-1-faiz_abbas@ti.com> References: <20200128101005.18794-1-faiz_abbas@ti.com> Message-ID: <20200128101005.18794-2-faiz_abbas@ti.com> From: Vignesh Raghavendra 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 Signed-off-by: Faiz Abbas --- drivers/gpio/da8xx_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index bd5a366aef..d28e1fa14c 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -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