Skip to content

Commit 320ddd8

Browse files
Ecce_Liscorpiochang
authored andcommitted
Optimize the code...
Change-Id: I717f112836eff182e33a1f485d3a1a361985b2ef Reviewed-on: https://tp-biosrd-v02/gerrit/81565 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent ef83dd3 commit 320ddd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/pinctrl-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ static int _rockchip_pmx_gpio_set_direction(struct gpio_chip *chip,
21192119
data &= ~BIT(pin);
21202120
#ifdef CONFIG_I2S_SHORT
21212121
/* For pin 185 and 186 are shorted. */
2122-
if (bank->pin_base + pin == 185)
2122+
if (gpio_pin == 185)
21232123
data &= ~BIT(2);
21242124
#endif
21252125
writel_relaxed(data, bank->reg_base + GPIO_SWPORT_DDR);

0 commit comments

Comments
 (0)