diff options
| author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 05:13:40 -0500 |
|---|---|---|
| committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:19:01 -0500 |
| commit | 7940848aab2d16f1f6a7e77b957e40d10465f38a (patch) | |
| tree | 2cfc72fd0c4ca1de04a3e0155acfccab65da70d0 | |
| parent | aab0c637f37950abd083d34e9f89311b0af61c96 (diff) | |
ARM: stmp378x: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
| -rw-r--r-- | arch/arm/mach-stmp378x/stmp378x.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-stmp378x/stmp378x.c b/arch/arm/mach-stmp378x/stmp378x.c index ddd49a760fd4..c2f9fe04c112 100644 --- a/arch/arm/mach-stmp378x/stmp378x.c +++ b/arch/arm/mach-stmp378x/stmp378x.c | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | /* | 47 | /* |
| 48 | * IRQ handling | 48 | * IRQ handling |
| 49 | */ | 49 | */ |
| 50 | static void stmp378x_ack_irq(unsigned int irq) | 50 | static void stmp378x_ack_irq(struct irq_data *d) |
| 51 | { | 51 | { |
| 52 | /* Tell ICOLL to release IRQ line */ | 52 | /* Tell ICOLL to release IRQ line */ |
| 53 | __raw_writel(0, REGS_ICOLL_BASE + HW_ICOLL_VECTOR); | 53 | __raw_writel(0, REGS_ICOLL_BASE + HW_ICOLL_VECTOR); |
| @@ -60,24 +60,24 @@ static void stmp378x_ack_irq(unsigned int irq) | |||
| 60 | (void)__raw_readl(REGS_ICOLL_BASE + HW_ICOLL_STAT); | 60 | (void)__raw_readl(REGS_ICOLL_BASE + HW_ICOLL_STAT); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | static void stmp378x_mask_irq(unsigned int irq) | 63 | static void stmp378x_mask_irq(struct irq_data *d) |
| 64 | { | 64 | { |
| 65 | /* IRQ disable */ | 65 | /* IRQ disable */ |
| 66 | stmp3xxx_clearl(BM_ICOLL_INTERRUPTn_ENABLE, | 66 | stmp3xxx_clearl(BM_ICOLL_INTERRUPTn_ENABLE, |
| 67 | REGS_ICOLL_BASE + HW_ICOLL_INTERRUPTn + irq * 0x10); | 67 | REGS_ICOLL_BASE + HW_ICOLL_INTERRUPTn + d->irq * 0x10); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | static void stmp378x_unmask_irq(unsigned int irq) | 70 | static void stmp378x_unmask_irq(struct irq_data *d) |
| 71 | { | 71 | { |
| 72 | /* IRQ enable */ | 72 | /* IRQ enable */ |
| 73 | stmp3xxx_setl(BM_ICOLL_INTERRUPTn_ENABLE, | 73 | stmp3xxx_setl(BM_ICOLL_INTERRUPTn_ENABLE, |
| 74 | REGS_ICOLL_BASE + HW_ICOLL_INTERRUPTn + irq * 0x10); | 74 | REGS_ICOLL_BASE + HW_ICOLL_INTERRUPTn + d->irq * 0x10); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | static struct irq_chip stmp378x_chip = { | 77 | static struct irq_chip stmp378x_chip = { |
| 78 | .ack = stmp378x_ack_irq, | 78 | .irq_ack = stmp378x_ack_irq, |
| 79 | .mask = stmp378x_mask_irq, | 79 | .irq_mask = stmp378x_mask_irq, |
| 80 | .unmask = stmp378x_unmask_irq, | 80 | .irq_unmask = stmp378x_unmask_irq, |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | void __init stmp378x_init_irq(void) | 83 | void __init stmp378x_init_irq(void) |
