From: Axel Lin Date: Wed, 26 Jun 2013 02:10:04 +0000 (+0800) Subject: gpio: adi_gpio2: Unreserve gpio in special_gpio_free() X-Git-Tag: v2013.10-rc1~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ced773a1ac20de2bf3d642944eb8de028420573;p=kernel%2Fu-boot.git gpio: adi_gpio2: 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/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c index 7a034eb..051073c 100644 --- a/drivers/gpio/adi_gpio2.c +++ b/drivers/gpio/adi_gpio2.c @@ -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