diff options
| author | Wolfram Sang <w.sang@pengutronix.de> | 2011-07-06 15:07:07 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-07 10:35:25 -0400 |
| commit | d30e1521b2afb5e6f21ca8bc1a4b6ec2afc93597 (patch) | |
| tree | 084acb5a15a2b4071b8bb2d0ebaf267c9362ef7f | |
| parent | 6662498e132dfa758925a160fd5ef80a083651c3 (diff) | |
arm: mach-vt8500: add forgotten irq_data conversion
This platform has not been converted to 'struct irq_data' when the big
pile was done. It fails to compile nowadays, because the compatibility
code has gone.
CC arch/arm/mach-vt8500/irq.o
arch/arm/mach-vt8500/irq.c:118:2: error: unknown field 'ack' specified in initializer
arch/arm/mach-vt8500/irq.c:118:2: warning: initialization from incompatible pointer type
arch/arm/mach-vt8500/irq.c:119:2: error: unknown field 'mask' specified in initializer
arch/arm/mach-vt8500/irq.c:119:2: warning: initialization from incompatible pointer type
arch/arm/mach-vt8500/irq.c:120:2: error: unknown field 'unmask' specified in initializer
arch/arm/mach-vt8500/irq.c:120:2: warning: initialization from incompatible pointer type
arch/arm/mach-vt8500/irq.c:121:2: error: unknown field 'set_type' specified in initializer
arch/arm/mach-vt8500/irq.c:121:2: warning: initialization from incompatible pointer type
make[1]: *** [arch/arm/mach-vt8500/irq.o] Error 1
Add the missing conversion. Tested on a JayPC-Tablet.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Alexey Charkov <alchark@gmail.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| -rw-r--r-- | arch/arm/mach-vt8500/irq.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/arch/arm/mach-vt8500/irq.c b/arch/arm/mach-vt8500/irq.c index 245140c0df10..642de0408f25 100644 --- a/arch/arm/mach-vt8500/irq.c +++ b/arch/arm/mach-vt8500/irq.c | |||
| @@ -39,9 +39,10 @@ | |||
| 39 | static void __iomem *ic_regbase; | 39 | static void __iomem *ic_regbase; |
| 40 | static void __iomem *sic_regbase; | 40 | static void __iomem *sic_regbase; |
| 41 | 41 | ||
| 42 | static void vt8500_irq_mask(unsigned int irq) | 42 | static void vt8500_irq_mask(struct irq_data *d) |
| 43 | { | 43 | { |
| 44 | void __iomem *base = ic_regbase; | 44 | void __iomem *base = ic_regbase; |
| 45 | unsigned irq = d->irq; | ||
| 45 | u8 edge; | 46 | u8 edge; |
| 46 | 47 | ||
| 47 | if (irq >= 64) { | 48 | if (irq >= 64) { |
| @@ -64,9 +65,10 @@ static void vt8500_irq_mask(unsigned int irq) | |||
| 64 | } | 65 | } |
| 65 | } | 66 | } |
| 66 | 67 | ||
| 67 | static void vt8500_irq_unmask(unsigned int irq) | 68 | static void vt8500_irq_unmask(struct irq_data *d) |
| 68 | { | 69 | { |
| 69 | void __iomem *base = ic_regbase; | 70 | void __iomem *base = ic_regbase; |
| 71 | unsigned irq = d->irq; | ||
| 70 | u8 dctr; | 72 | u8 dctr; |
| 71 | 73 | ||
| 72 | if (irq >= 64) { | 74 | if (irq >= 64) { |
| @@ -78,10 +80,11 @@ static void vt8500_irq_unmask(unsigned int irq) | |||
| 78 | writeb(dctr, base + VT8500_IC_DCTR + irq); | 80 | writeb(dctr, base + VT8500_IC_DCTR + irq); |
| 79 | } | 81 | } |
| 80 | 82 | ||
| 81 | static int vt8500_irq_set_type(unsigned int irq, unsigned int flow_type) | 83 | static int vt8500_irq_set_type(struct irq_data *d, unsigned int flow_type) |
| 82 | { | 84 | { |
| 83 | void __iomem *base = ic_regbase; | 85 | void __iomem *base = ic_regbase; |
| 84 | unsigned int orig_irq = irq; | 86 | unsigned irq = d->irq; |
| 87 | unsigned orig_irq = irq; | ||
| 85 | u8 dctr; | 88 | u8 dctr; |
| 86 | 89 | ||
| 87 | if (irq >= 64) { | 90 | if (irq >= 64) { |
| @@ -114,11 +117,11 @@ static int vt8500_irq_set_type(unsigned int irq, unsigned int flow_type) | |||
| 114 | } | 117 | } |
| 115 | 118 | ||
| 116 | static struct irq_chip vt8500_irq_chip = { | 119 | static struct irq_chip vt8500_irq_chip = { |
| 117 | .name = "vt8500", | 120 | .name = "vt8500", |
| 118 | .ack = vt8500_irq_mask, | 121 | .irq_ack = vt8500_irq_mask, |
| 119 | .mask = vt8500_irq_mask, | 122 | .irq_mask = vt8500_irq_mask, |
| 120 | .unmask = vt8500_irq_unmask, | 123 | .irq_unmask = vt8500_irq_unmask, |
| 121 | .set_type = vt8500_irq_set_type, | 124 | .irq_set_type = vt8500_irq_set_type, |
| 122 | }; | 125 | }; |
| 123 | 126 | ||
| 124 | void __init vt8500_init_irq(void) | 127 | void __init vt8500_init_irq(void) |
