diff options
author | Atul Dahiya <atul.dahiya@samsung.com> | 2010-10-08 21:00:02 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-18 18:33:04 +0900 |
commit | 3d4af5cac77f8d4f7422b1d00cb9e67000f94301 (patch) | |
tree | d1bb6cb64454c6e7d5e550779cbcabe9726a7c26 | |
parent | d7297612ae53dfaf88b702f89a153d3da52bcd31 (diff) | |
download | linux-3.10-3d4af5cac77f8d4f7422b1d00cb9e67000f94301.tar.gz linux-3.10-3d4af5cac77f8d4f7422b1d00cb9e67000f94301.tar.bz2 linux-3.10-3d4af5cac77f8d4f7422b1d00cb9e67000f94301.zip |
ARM: S5P64X0: Fix GPIO rbank support
The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock
recursively as lock is already acquired by calling function.
Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
[kgene.kim@samsung.com: removed useless variable due to this]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-s5p64x0/gpio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-s5p64x0/gpio.c b/arch/arm/mach-s5p64x0/gpio.c index 131eefe0c9f..39159dd5a29 100644 --- a/arch/arm/mach-s5p64x0/gpio.c +++ b/arch/arm/mach-s5p64x0/gpio.c @@ -132,7 +132,6 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct s3c_gpio_chip *chip, { void __iomem *reg = chip->base; unsigned int shift; - unsigned long flags; u32 con; switch (off) { @@ -158,15 +157,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct s3c_gpio_chip *chip, cfg <<= shift; } - s3c_gpio_lock(chip, flags); - con = __raw_readl(reg); con &= ~(0xf << shift); con |= cfg; __raw_writel(con, reg); - s3c_gpio_unlock(chip, flags); - return 0; } |