]> git.sur5r.net Git - u-boot/commitdiff
gpio: adi_gpio2: Unreserve gpio in special_gpio_free()
authorAxel Lin <axel.lin@ingics.com>
Wed, 26 Jun 2013 02:10:04 +0000 (10:10 +0800)
committerSonic Zhang <sonic.zhang@analog.com>
Wed, 31 Jul 2013 08:56:03 +0000 (16:56 +0800)
In special_gpio_free(), call unreserve() rather than reserve() to release gpio.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
drivers/gpio/adi_gpio2.c

index 7a034eba1222880db32f038ecf77881ae48292d9..051073cee3b5d47a2caeb4a9e600e3ed616aa866 100644 (file)
@@ -352,8 +352,8 @@ void special_gpio_free(unsigned gpio)
                return;
        }
 
-       reserve(special_gpio, gpio);
-       reserve(peri, gpio);
+       unreserve(special_gpio, gpio);
+       unreserve(peri, gpio);
        set_label(gpio, "free");
 }
 #endif