summaryrefslogtreecommitdiff
path: root/drivers/gpio/adi_gpio2.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-26 10:10:04 +0800
committerSonic Zhang <sonic.zhang@analog.com>2013-07-31 16:56:03 +0800
commit2ced773a1ac20de2bf3d642944eb8de028420573 (patch)
tree1d47dd275d88aaeb51ffde125c512f3bbb26f0c1 /drivers/gpio/adi_gpio2.c
parent5460b8d469ca9510cfc45463eaf7eecfca68b8a5 (diff)
downloadu-boot-imx-2ced773a1ac20de2bf3d642944eb8de028420573.zip
u-boot-imx-2ced773a1ac20de2bf3d642944eb8de028420573.tar.gz
u-boot-imx-2ced773a1ac20de2bf3d642944eb8de028420573.tar.bz2
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.c4
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