diff options
Diffstat (limited to 'arch/arm/plat-mxc/gpio.c')
-rw-r--r-- | arch/arm/plat-mxc/gpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c index de5c4747453f..ccbd94adc668 100644 --- a/arch/arm/plat-mxc/gpio.c +++ b/arch/arm/plat-mxc/gpio.c | |||
@@ -115,8 +115,8 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) | |||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | #ifdef CONFIG_ARCH_MX3 | 118 | #if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX1) |
119 | /* MX3 has one interrupt *per* gpio port */ | 119 | /* MX1 and MX3 has one interrupt *per* gpio port */ |
120 | static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc) | 120 | static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc) |
121 | { | 121 | { |
122 | u32 irq_stat; | 122 | u32 irq_stat; |
@@ -237,7 +237,7 @@ int __init mxc_gpio_init(struct mxc_gpio_port *port, int cnt) | |||
237 | /* its a serious configuration bug when it fails */ | 237 | /* its a serious configuration bug when it fails */ |
238 | BUG_ON( gpiochip_add(&port[i].chip) < 0 ); | 238 | BUG_ON( gpiochip_add(&port[i].chip) < 0 ); |
239 | 239 | ||
240 | #ifdef CONFIG_ARCH_MX3 | 240 | #if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX1) |
241 | /* setup one handler for each entry */ | 241 | /* setup one handler for each entry */ |
242 | set_irq_chained_handler(port[i].irq, mx3_gpio_irq_handler); | 242 | set_irq_chained_handler(port[i].irq, mx3_gpio_irq_handler); |
243 | set_irq_data(port[i].irq, &port[i]); | 243 | set_irq_data(port[i].irq, &port[i]); |