diff options
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c index 4ad5c1a996e3..bde45ba8d710 100644 --- a/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c +++ b/drivers/pinctrl/bcm/pinctrl-cygnus-gpio.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #define CYGNUS_GPIO_DATA_IN_OFFSET 0x00 | 38 | #define CYGNUS_GPIO_DATA_IN_OFFSET 0x00 |
39 | #define CYGNUS_GPIO_DATA_OUT_OFFSET 0x04 | 39 | #define CYGNUS_GPIO_DATA_OUT_OFFSET 0x04 |
40 | #define CYGNUS_GPIO_OUT_EN_OFFSET 0x08 | 40 | #define CYGNUS_GPIO_OUT_EN_OFFSET 0x08 |
41 | #define CYGNUS_GPIO_IN_TYPE_OFFSET 0x0c | 41 | #define CYGNUS_GPIO_INT_TYPE_OFFSET 0x0c |
42 | #define CYGNUS_GPIO_INT_DE_OFFSET 0x10 | 42 | #define CYGNUS_GPIO_INT_DE_OFFSET 0x10 |
43 | #define CYGNUS_GPIO_INT_EDGE_OFFSET 0x14 | 43 | #define CYGNUS_GPIO_INT_EDGE_OFFSET 0x14 |
44 | #define CYGNUS_GPIO_INT_MSK_OFFSET 0x18 | 44 | #define CYGNUS_GPIO_INT_MSK_OFFSET 0x18 |
@@ -264,7 +264,7 @@ static int cygnus_gpio_irq_set_type(struct irq_data *d, unsigned int type) | |||
264 | } | 264 | } |
265 | 265 | ||
266 | spin_lock_irqsave(&chip->lock, flags); | 266 | spin_lock_irqsave(&chip->lock, flags); |
267 | cygnus_set_bit(chip, CYGNUS_GPIO_IN_TYPE_OFFSET, gpio, | 267 | cygnus_set_bit(chip, CYGNUS_GPIO_INT_TYPE_OFFSET, gpio, |
268 | level_triggered); | 268 | level_triggered); |
269 | cygnus_set_bit(chip, CYGNUS_GPIO_INT_DE_OFFSET, gpio, dual_edge); | 269 | cygnus_set_bit(chip, CYGNUS_GPIO_INT_DE_OFFSET, gpio, dual_edge); |
270 | cygnus_set_bit(chip, CYGNUS_GPIO_INT_EDGE_OFFSET, gpio, | 270 | cygnus_set_bit(chip, CYGNUS_GPIO_INT_EDGE_OFFSET, gpio, |