ARM: S5P64X0: fix gpio rbank support
Subsystems (3)
PATCH 1/1 ARM: S5P64X0: fix gpio rbank support
From: Atul Dahiya <[email protected]>
The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock recursively as lock is already acquired by calling function.
--- arch/arm/mach-s5p64x0/gpio.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/mach-s5p64x0/gpio.c +0 -4
@@ -158,15 +158,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 ; }
Signature · 1 line
1.6.6.1
Quoted 24 lines · Sangbeom Kim
From: Atul Dahiya <[email protected]>
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 <[email protected]>Signed-off-by Sangbeom Kim <[email protected]>--- arch/arm/mach-s5p64x0/gpio.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)arch/arm/mach-s5p64x0/gpio.c +0
-2@@ -158,15 +158,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct s3c_gpio_chip *chip, cfg <<= shift; } -s3c_gpio_lock (chip, flags); - con =__raw_readl (reg);
arch/arm/mach-s5p64x0/gpio.c int s5p64x0_gpio_setcfg_4bit_rbank(struct
Quoted 10 lines
arch/arm/mach-s5p64x0/gpio.c +0
-3con &= ~(0xf << shift); con |= cfg;__raw_writel (con, reg); -s3c_gpio_unlock (chip, flags); -return 0 ; } --
Right...will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 24 lines · Sangbeom Kim
From: Atul Dahiya <[email protected]>
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 <[email protected]>Signed-off-by Sangbeom Kim <[email protected]>--- arch/arm/mach-s5p64x0/gpio.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)arch/arm/mach-s5p64x0/gpio.c +0
-2@@ -158,15 +158,11 @@ int s5p64x0_gpio_setcfg_4bit_rbank(struct s3c_gpio_chip *chip, cfg <<= shift; } -s3c_gpio_lock (chip, flags); - con =__raw_readl (reg);
arch/arm/mach-s5p64x0/gpio.c int s5p64x0_gpio_setcfg_4bit_rbank(struct
Quoted 10 lines
arch/arm/mach-s5p64x0/gpio.c +0
-3con &= ~(0xf << shift); con |= cfg;__raw_writel (con, reg); -s3c_gpio_unlock (chip, flags); -return 0 ; } --
We don't need to define the variable 'flags' with this too.
arch/arm/mach-s5p64x0/gpio.c: In function 's5p64x0_gpio_setcfg_4bit_rbank':arch/arm/mach-s5p64x0/gpio.c:135: warning: unused variable 'flags'
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.