diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-06 18:39:14 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-03-15 07:01:52 -0400 |
commit | 0bc0f3aa1498e7ec0bb54f32b839e82319cb5fc1 (patch) | |
tree | bf0455e2f5786c74a5c9f942c9306af96742453a /arch/m68knommu/platform/coldfire/intc-2.c | |
parent | c2ff7c716a609dcc3b7f899a9052a6f6a93645b5 (diff) |
m68knommu: Convert coldfire intc-2 irq_chip to new
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu/platform/coldfire/intc-2.c')
-rw-r--r-- | arch/m68knommu/platform/coldfire/intc-2.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/m68knommu/platform/coldfire/intc-2.c b/arch/m68knommu/platform/coldfire/intc-2.c index 85daa2b3001a..71e07fb69302 100644 --- a/arch/m68knommu/platform/coldfire/intc-2.c +++ b/arch/m68knommu/platform/coldfire/intc-2.c | |||
@@ -43,8 +43,10 @@ static u8 intc_intpri = MCFSIM_ICR_LEVEL(6) | MCFSIM_ICR_PRI(6); | |||
43 | #define NR_VECS 64 | 43 | #define NR_VECS 64 |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | static void intc_irq_mask(unsigned int irq) | 46 | static void intc_irq_mask(struct irq_data *d) |
47 | { | 47 | { |
48 | unsigned int irq = d->irq; | ||
49 | |||
48 | if ((irq >= MCFINT_VECBASE) && (irq <= MCFINT_VECBASE + NR_VECS)) { | 50 | if ((irq >= MCFINT_VECBASE) && (irq <= MCFINT_VECBASE + NR_VECS)) { |
49 | unsigned long imraddr; | 51 | unsigned long imraddr; |
50 | u32 val, imrbit; | 52 | u32 val, imrbit; |
@@ -64,8 +66,10 @@ static void intc_irq_mask(unsigned int irq) | |||
64 | } | 66 | } |
65 | } | 67 | } |
66 | 68 | ||
67 | static void intc_irq_unmask(unsigned int irq) | 69 | static void intc_irq_unmask(struct irq_data *d) |
68 | { | 70 | { |
71 | unsigned int irq = d->irq; | ||
72 | |||
69 | if ((irq >= MCFINT_VECBASE) && (irq <= MCFINT_VECBASE + NR_VECS)) { | 73 | if ((irq >= MCFINT_VECBASE) && (irq <= MCFINT_VECBASE + NR_VECS)) { |
70 | unsigned long intaddr, imraddr, icraddr; | 74 | unsigned long intaddr, imraddr, icraddr; |
71 | u32 val, imrbit; | 75 | u32 val, imrbit; |
@@ -93,16 +97,16 @@ static void intc_irq_unmask(unsigned int irq) | |||
93 | } | 97 | } |
94 | } | 98 | } |
95 | 99 | ||
96 | static int intc_irq_set_type(unsigned int irq, unsigned int type) | 100 | static int intc_irq_set_type(struct irq_data *d, unsigned int type) |
97 | { | 101 | { |
98 | return 0; | 102 | return 0; |
99 | } | 103 | } |
100 | 104 | ||
101 | static struct irq_chip intc_irq_chip = { | 105 | static struct irq_chip intc_irq_chip = { |
102 | .name = "CF-INTC", | 106 | .name = "CF-INTC", |
103 | .mask = intc_irq_mask, | 107 | .irq_mask = intc_irq_mask, |
104 | .unmask = intc_irq_unmask, | 108 | .irq_unmask = intc_irq_unmask, |
105 | .set_type = intc_irq_set_type, | 109 | .irq_set_type = intc_irq_set_type, |
106 | }; | 110 | }; |
107 | 111 | ||
108 | void __init init_IRQ(void) | 112 | void __init init_IRQ(void) |