From: Axel Lin Date: Wed, 26 Jun 2013 02:09:16 +0000 (+0800) Subject: blackfin: gpio: Unreserve gpio in special_gpio_free() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5460b8d469ca9510cfc45463eaf7eecfca68b8a5;p=u-boot.git blackfin: gpio: Unreserve gpio in special_gpio_free() In special_gpio_free(), call unreserve() rather than reserve() to release gpio. Signed-off-by: Axel Lin Signed-off-by: Sonic Zhang --- diff --git a/arch/blackfin/cpu/gpio.c b/arch/blackfin/cpu/gpio.c index f74a0b7c0e..a4d10d5160 100644 --- a/arch/blackfin/cpu/gpio.c +++ b/arch/blackfin/cpu/gpio.c @@ -662,8 +662,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