diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:32:55 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:38 -0500 |
commit | 6e8f54fad5b2e15b64595d6ededb316d713db102 (patch) | |
tree | ef66ac16c288867cba25c60d6252e3495b9c8454 /arch/arm/mach-ixp2000/ixdp2x01.c | |
parent | a0ad2a7e6b74def9b3b0db0cd4daea7a1bccef59 (diff) |
ARM: ixp2000: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-ixp2000/ixdp2x01.c')
-rw-r--r-- | arch/arm/mach-ixp2000/ixdp2x01.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-ixp2000/ixdp2x01.c b/arch/arm/mach-ixp2000/ixdp2x01.c index 6c121bdbe311..34b1b2af37c8 100644 --- a/arch/arm/mach-ixp2000/ixdp2x01.c +++ b/arch/arm/mach-ixp2000/ixdp2x01.c | |||
@@ -48,16 +48,16 @@ | |||
48 | /************************************************************************* | 48 | /************************************************************************* |
49 | * IXDP2x01 IRQ Handling | 49 | * IXDP2x01 IRQ Handling |
50 | *************************************************************************/ | 50 | *************************************************************************/ |
51 | static void ixdp2x01_irq_mask(unsigned int irq) | 51 | static void ixdp2x01_irq_mask(struct irq_data *d) |
52 | { | 52 | { |
53 | ixp2000_reg_wrb(IXDP2X01_INT_MASK_SET_REG, | 53 | ixp2000_reg_wrb(IXDP2X01_INT_MASK_SET_REG, |
54 | IXP2000_BOARD_IRQ_MASK(irq)); | 54 | IXP2000_BOARD_IRQ_MASK(d->irq)); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void ixdp2x01_irq_unmask(unsigned int irq) | 57 | static void ixdp2x01_irq_unmask(struct irq_data *d) |
58 | { | 58 | { |
59 | ixp2000_reg_write(IXDP2X01_INT_MASK_CLR_REG, | 59 | ixp2000_reg_write(IXDP2X01_INT_MASK_CLR_REG, |
60 | IXP2000_BOARD_IRQ_MASK(irq)); | 60 | IXP2000_BOARD_IRQ_MASK(d->irq)); |
61 | } | 61 | } |
62 | 62 | ||
63 | static u32 valid_irq_mask; | 63 | static u32 valid_irq_mask; |
@@ -67,7 +67,7 @@ static void ixdp2x01_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
67 | u32 ex_interrupt; | 67 | u32 ex_interrupt; |
68 | int i; | 68 | int i; |
69 | 69 | ||
70 | desc->chip->mask(irq); | 70 | desc->irq_data.chip->irq_mask(&desc->irq_data); |
71 | 71 | ||
72 | ex_interrupt = *IXDP2X01_INT_STAT_REG & valid_irq_mask; | 72 | ex_interrupt = *IXDP2X01_INT_STAT_REG & valid_irq_mask; |
73 | 73 | ||
@@ -83,13 +83,13 @@ static void ixdp2x01_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | desc->chip->unmask(irq); | 86 | desc->irq_data.chip->irq_unmask(&desc->irq_data); |
87 | } | 87 | } |
88 | 88 | ||
89 | static struct irq_chip ixdp2x01_irq_chip = { | 89 | static struct irq_chip ixdp2x01_irq_chip = { |
90 | .mask = ixdp2x01_irq_mask, | 90 | .irq_mask = ixdp2x01_irq_mask, |
91 | .ack = ixdp2x01_irq_mask, | 91 | .irq_ack = ixdp2x01_irq_mask, |
92 | .unmask = ixdp2x01_irq_unmask | 92 | .irq_unmask = ixdp2x01_irq_unmask |
93 | }; | 93 | }; |
94 | 94 | ||
95 | /* | 95 | /* |