Skip to content

Commit

Permalink
[ARM] 2935/1: ixp4xx: fix warnings in ixp4xx_set_irq_type
Browse files Browse the repository at this point in the history
Patch from David Vrabel

Signed-off-by: David Vrabel <dvrabel@arcom.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
David Vrabel authored and Russell King committed Sep 26, 2005
1 parent cbf8fd9 commit 6132f9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/mach-ixp4xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
} else if (type & IRQT_LOW) {
int_style = IXP4XX_GPIO_STYLE_ACTIVE_LOW;
irq_type = IXP4XX_IRQ_LEVEL;
}
} else
return -EINVAL;

ixp4xx_config_irq(irq, irq_type);

Expand All @@ -142,6 +143,8 @@ static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)

/* Set the new style */
*int_reg |= (int_style << (line * IXP4XX_GPIO_STYLE_SIZE));

return 0;
}

static void ixp4xx_irq_mask(unsigned int irq)
Expand Down

0 comments on commit 6132f9e

Please sign in to comment.