From: Anatolij Gustschin <agust@denx.de>
Date: Wed, 7 Dec 2011 11:47:47 +0000 (+0000)
Subject: drivers/gpio/da8xx_gpio.c: Fix build warning
X-Git-Tag: v2025.01-rc5-pxa1908~18321
X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/html/index.html?a=commitdiff_plain;h=3da597dbde3c5853d9cc8af1ba384c0fb79e8140;p=u-boot.git

drivers/gpio/da8xx_gpio.c: Fix build warning

Fix:
da8xx_gpio.c: In function 'gpio_toggle_value':
da8xx_gpio.c:208:23: warning: variable 'bank' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---

diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c
index 7a1561429d..74b58e889f 100644
--- a/drivers/gpio/da8xx_gpio.c
+++ b/drivers/gpio/da8xx_gpio.c
@@ -205,9 +205,6 @@ void gpio_free(int gp)
 
 void gpio_toggle_value(int gp)
 {
-	struct davinci_gpio *bank;
-
-	bank = GPIO_BANK(gp);
 	gpio_set_value(gp, !gpio_get_value(gp));
 }