summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-26 10:09:16 +0800
committerSonic Zhang <sonic.zhang@analog.com>2013-07-31 16:56:03 +0800
commit5460b8d469ca9510cfc45463eaf7eecfca68b8a5 (patch)
tree39961ed7ae617a4fe4e170126f8b1c67236de39b /arch/blackfin/cpu
parent6a19cc9df0ff76273cecd3cd72323a73ff44e8de (diff)
downloadu-boot-imx-5460b8d469ca9510cfc45463eaf7eecfca68b8a5.zip
u-boot-imx-5460b8d469ca9510cfc45463eaf7eecfca68b8a5.tar.gz
u-boot-imx-5460b8d469ca9510cfc45463eaf7eecfca68b8a5.tar.bz2
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 <axel.lin@ingics.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/cpu')
-rw-r--r--arch/blackfin/cpu/gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/cpu/gpio.c b/arch/blackfin/cpu/gpio.c
index f74a0b7..a4d10d5 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