diff options
Diffstat (limited to 'arch/arm/mach-ixp4xx/common.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 52ad11328e96..36b6045213ee 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -125,7 +125,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type) | |||
125 | } else if (type & IRQT_LOW) { | 125 | } else if (type & IRQT_LOW) { |
126 | int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW; | 126 | int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW; |
127 | irq_type = IXP4XX_IRQ_LEVEL; | 127 | irq_type = IXP4XX_IRQ_LEVEL; |
128 | } | 128 | } else |
129 | return -EINVAL; | ||
129 | 130 | ||
130 | ixp4xx_config_irq(irq, irq_type); | 131 | ixp4xx_config_irq(irq, irq_type); |
131 | 132 | ||
@@ -142,6 +143,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type) | |||
142 | 143 | ||
143 | /* Set the new style */ | 144 | /* Set the new style */ |
144 | *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE)); | 145 | *int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE)); |
146 | |||
147 | return 0; | ||
145 | } | 148 | } |
146 | 149 | ||
147 | static void ixp4xx_irq_mask(unsigned int irq) | 150 | static void ixp4xx_irq_mask(unsigned int irq) |