[ARM] 2935/1: ixp4xx: fix warnings in ixp4xx_set_irq_type
Patch from David Vrabel Signed-off-by: David Vrabel <dvrabel@arcom.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
cbf8fd9f5a
commit
6132f9e146
@@ -125,7 +125,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
|
|||||||
} else if (type & IRQT_LOW) {
|
} else if (type & IRQT_LOW) {
|
||||||
int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW;
|
int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW;
|
||||||
irq_type = IXP4XX_IRQ_LEVEL;
|
irq_type = IXP4XX_IRQ_LEVEL;
|
||||||
}
|
} else
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
ixp4xx_config_irq(irq, irq_type);
|
ixp4xx_config_irq(irq, irq_type);
|
||||||
|
|
||||||
@@ -142,6 +143,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
|
|||||||
|
|
||||||
/* Set the new style */
|
/* Set the new style */
|
||||||
*int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
|
*int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ixp4xx_irq_mask(unsigned int irq)
|
static void ixp4xx_irq_mask(unsigned int irq)
|
||||||
|
Reference in New Issue
Block a user