summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/rdc321x-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/rdc321x-gpio.c')
-rw-r--r--drivers/gpio/rdc321x-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/rdc321x-gpio.c b/drivers/gpio/rdc321x-gpio.c
index 22f31dc5010..2762698e020 100644
--- a/drivers/gpio/rdc321x-gpio.c
+++ b/drivers/gpio/rdc321x-gpio.c
@@ -73,7 +73,7 @@ static void rdc_gpio_set_value_impl(struct gpio_chip *chip,
gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
pci_write_config_dword(gpch->sb_pdev,
- reg ? gpch->reg1_data_base : gpch->reg2_data_base,
+ reg ? gpch->reg2_data_base : gpch->reg1_data_base,
gpch->data_reg[reg]);
}