diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-15 15:33:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-15 15:33:40 -0500 |
commit | 16c1020362083b320868c0deef492249089c3cd3 (patch) | |
tree | ff200df3502e6010745713275d69fd0a07e399cf /arch/arm/mach-omap1/fpga.c | |
parent | 65e5d002b5ad220db2bf9557f53de5a98f7dab86 (diff) | |
parent | bbba75606963c82febf7bd2761ea848ac5d1a1bb (diff) |
Merge branch 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm: (161 commits)
ARM: pxa: fix building issue of missing physmap.h
ARM: mmp: PXA910 drive strength FAST using wrong value
ARM: mmp: MMP2 drive strength FAST using wrong value
ARM: pxa: fix recursive calls in pxa_low_gpio_chip
AT91: Support for gsia18s board
AT91: Acme Systems FOX Board G20 board files
AT91: board-sam9m10g45ek.c: Remove duplicate inclusion of mach/hardware.h
ARM: pxa: fix suspend/resume array index miscalculation
ARM: pxa: use cpu_has_ipr() consistently in irq.c
ARM: pxa: remove unused variable in clock-pxa3xx.c
ARM: pxa: fix warning in zeus.c
ARM: sa1111: fix typo in sa1111_retrigger_lowirq()
ARM mxs: clkdev related compile fixes
ARM i.MX mx31_3ds: Fix MC13783 regulator names
ARM: plat-stmp3xxx: irq_data conversion.
ARM: plat-spear: irq_data conversion.
ARM: plat-orion: irq_data conversion.
ARM: plat-omap: irq_data conversion.
ARM: plat-nomadik: irq_data conversion.
ARM: plat-mxc: irq_data conversion.
...
Fix up trivial conflict in arch/arm/plat-omap/gpio.c (Lennert
Buytenhek's irq_data conversion clashing with some omap irq updates)
Diffstat (limited to 'arch/arm/mach-omap1/fpga.c')
-rw-r--r-- | arch/arm/mach-omap1/fpga.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/mach-omap1/fpga.c b/arch/arm/mach-omap1/fpga.c index 8780e75cdc3..0ace7998aaa 100644 --- a/arch/arm/mach-omap1/fpga.c +++ b/arch/arm/mach-omap1/fpga.c | |||
@@ -30,9 +30,9 @@ | |||
30 | #include <plat/fpga.h> | 30 | #include <plat/fpga.h> |
31 | #include <mach/gpio.h> | 31 | #include <mach/gpio.h> |
32 | 32 | ||
33 | static void fpga_mask_irq(unsigned int irq) | 33 | static void fpga_mask_irq(struct irq_data *d) |
34 | { | 34 | { |
35 | irq -= OMAP_FPGA_IRQ_BASE; | 35 | unsigned int irq = d->irq - OMAP_FPGA_IRQ_BASE; |
36 | 36 | ||
37 | if (irq < 8) | 37 | if (irq < 8) |
38 | __raw_writeb((__raw_readb(OMAP1510_FPGA_IMR_LO) | 38 | __raw_writeb((__raw_readb(OMAP1510_FPGA_IMR_LO) |
@@ -58,14 +58,14 @@ static inline u32 get_fpga_unmasked_irqs(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
61 | static void fpga_ack_irq(unsigned int irq) | 61 | static void fpga_ack_irq(struct irq_data *d) |
62 | { | 62 | { |
63 | /* Don't need to explicitly ACK FPGA interrupts */ | 63 | /* Don't need to explicitly ACK FPGA interrupts */ |
64 | } | 64 | } |
65 | 65 | ||
66 | static void fpga_unmask_irq(unsigned int irq) | 66 | static void fpga_unmask_irq(struct irq_data *d) |
67 | { | 67 | { |
68 | irq -= OMAP_FPGA_IRQ_BASE; | 68 | unsigned int irq = d->irq - OMAP_FPGA_IRQ_BASE; |
69 | 69 | ||
70 | if (irq < 8) | 70 | if (irq < 8) |
71 | __raw_writeb((__raw_readb(OMAP1510_FPGA_IMR_LO) | (1 << irq)), | 71 | __raw_writeb((__raw_readb(OMAP1510_FPGA_IMR_LO) | (1 << irq)), |
@@ -78,10 +78,10 @@ static void fpga_unmask_irq(unsigned int irq) | |||
78 | | (1 << (irq - 16))), INNOVATOR_FPGA_IMR2); | 78 | | (1 << (irq - 16))), INNOVATOR_FPGA_IMR2); |
79 | } | 79 | } |
80 | 80 | ||
81 | static void fpga_mask_ack_irq(unsigned int irq) | 81 | static void fpga_mask_ack_irq(struct irq_data *d) |
82 | { | 82 | { |
83 | fpga_mask_irq(irq); | 83 | fpga_mask_irq(d); |
84 | fpga_ack_irq(irq); | 84 | fpga_ack_irq(d); |
85 | } | 85 | } |
86 | 86 | ||
87 | void innovator_fpga_IRQ_demux(unsigned int irq, struct irq_desc *desc) | 87 | void innovator_fpga_IRQ_demux(unsigned int irq, struct irq_desc *desc) |
@@ -105,17 +105,17 @@ void innovator_fpga_IRQ_demux(unsigned int irq, struct irq_desc *desc) | |||
105 | 105 | ||
106 | static struct irq_chip omap_fpga_irq_ack = { | 106 | static struct irq_chip omap_fpga_irq_ack = { |
107 | .name = "FPGA-ack", | 107 | .name = "FPGA-ack", |
108 | .ack = fpga_mask_ack_irq, | 108 | .irq_ack = fpga_mask_ack_irq, |
109 | .mask = fpga_mask_irq, | 109 | .irq_mask = fpga_mask_irq, |
110 | .unmask = fpga_unmask_irq, | 110 | .irq_unmask = fpga_unmask_irq, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | 113 | ||
114 | static struct irq_chip omap_fpga_irq = { | 114 | static struct irq_chip omap_fpga_irq = { |
115 | .name = "FPGA", | 115 | .name = "FPGA", |
116 | .ack = fpga_ack_irq, | 116 | .irq_ack = fpga_ack_irq, |
117 | .mask = fpga_mask_irq, | 117 | .irq_mask = fpga_mask_irq, |
118 | .unmask = fpga_unmask_irq, | 118 | .irq_unmask = fpga_unmask_irq, |
119 | }; | 119 | }; |
120 | 120 | ||
121 | /* | 121 | /* |