diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-06-26 02:10:04 (GMT) |
---|---|---|
committer | Sonic Zhang <sonic.zhang@analog.com> | 2013-07-31 08:56:03 (GMT) |
commit | 2ced773a1ac20de2bf3d642944eb8de028420573 (patch) | |
tree | 1d47dd275d88aaeb51ffde125c512f3bbb26f0c1 /drivers | |
parent | 5460b8d469ca9510cfc45463eaf7eecfca68b8a5 (diff) | |
download | u-boot-2ced773a1ac20de2bf3d642944eb8de028420573.tar.xz |
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')
-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 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 |