diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-06-26 10:10:04 +0800 |
---|---|---|
committer | Sonic Zhang <sonic.zhang@analog.com> | 2013-07-31 16:56:03 +0800 |
commit | 2ced773a1ac20de2bf3d642944eb8de028420573 (patch) | |
tree | 1d47dd275d88aaeb51ffde125c512f3bbb26f0c1 /drivers/gpio/adi_gpio2.c | |
parent | 5460b8d469ca9510cfc45463eaf7eecfca68b8a5 (diff) |
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 <axel.lin@ingics.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'drivers/gpio/adi_gpio2.c')
-rw-r--r-- | drivers/gpio/adi_gpio2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c index 7a034eba12..051073cee3 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 |