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-ns9xxx/board-a9m9750dev.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-ns9xxx/board-a9m9750dev.c')
-rw-r--r-- | arch/arm/mach-ns9xxx/board-a9m9750dev.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/mach-ns9xxx/board-a9m9750dev.c b/arch/arm/mach-ns9xxx/board-a9m9750dev.c index b45bb3b802f1..0c0d5248c368 100644 --- a/arch/arm/mach-ns9xxx/board-a9m9750dev.c +++ b/arch/arm/mach-ns9xxx/board-a9m9750dev.c | |||
@@ -37,44 +37,44 @@ void __init board_a9m9750dev_map_io(void) | |||
37 | ARRAY_SIZE(board_a9m9750dev_io_desc)); | 37 | ARRAY_SIZE(board_a9m9750dev_io_desc)); |
38 | } | 38 | } |
39 | 39 | ||
40 | static void a9m9750dev_fpga_ack_irq(unsigned int irq) | 40 | static void a9m9750dev_fpga_ack_irq(struct irq_data *d) |
41 | { | 41 | { |
42 | /* nothing */ | 42 | /* nothing */ |
43 | } | 43 | } |
44 | 44 | ||
45 | static void a9m9750dev_fpga_mask_irq(unsigned int irq) | 45 | static void a9m9750dev_fpga_mask_irq(struct irq_data *d) |
46 | { | 46 | { |
47 | u8 ier; | 47 | u8 ier; |
48 | 48 | ||
49 | ier = __raw_readb(FPGA_IER); | 49 | ier = __raw_readb(FPGA_IER); |
50 | 50 | ||
51 | ier &= ~(1 << (irq - FPGA_IRQ(0))); | 51 | ier &= ~(1 << (d->irq - FPGA_IRQ(0))); |
52 | 52 | ||
53 | __raw_writeb(ier, FPGA_IER); | 53 | __raw_writeb(ier, FPGA_IER); |
54 | } | 54 | } |
55 | 55 | ||
56 | static void a9m9750dev_fpga_maskack_irq(unsigned int irq) | 56 | static void a9m9750dev_fpga_maskack_irq(struct irq_data *d) |
57 | { | 57 | { |
58 | a9m9750dev_fpga_mask_irq(irq); | 58 | a9m9750dev_fpga_mask_irq(d); |
59 | a9m9750dev_fpga_ack_irq(irq); | 59 | a9m9750dev_fpga_ack_irq(d); |
60 | } | 60 | } |
61 | 61 | ||
62 | static void a9m9750dev_fpga_unmask_irq(unsigned int irq) | 62 | static void a9m9750dev_fpga_unmask_irq(struct irq_data *d) |
63 | { | 63 | { |
64 | u8 ier; | 64 | u8 ier; |
65 | 65 | ||
66 | ier = __raw_readb(FPGA_IER); | 66 | ier = __raw_readb(FPGA_IER); |
67 | 67 | ||
68 | ier |= 1 << (irq - FPGA_IRQ(0)); | 68 | ier |= 1 << (d->irq - FPGA_IRQ(0)); |
69 | 69 | ||
70 | __raw_writeb(ier, FPGA_IER); | 70 | __raw_writeb(ier, FPGA_IER); |
71 | } | 71 | } |
72 | 72 | ||
73 | static struct irq_chip a9m9750dev_fpga_chip = { | 73 | static struct irq_chip a9m9750dev_fpga_chip = { |
74 | .ack = a9m9750dev_fpga_ack_irq, | 74 | .irq_ack = a9m9750dev_fpga_ack_irq, |
75 | .mask = a9m9750dev_fpga_mask_irq, | 75 | .irq_mask = a9m9750dev_fpga_mask_irq, |
76 | .mask_ack = a9m9750dev_fpga_maskack_irq, | 76 | .irq_mask_ack = a9m9750dev_fpga_maskack_irq, |
77 | .unmask = a9m9750dev_fpga_unmask_irq, | 77 | .irq_unmask = a9m9750dev_fpga_unmask_irq, |
78 | }; | 78 | }; |
79 | 79 | ||
80 | static void a9m9750dev_fpga_demux_handler(unsigned int irq, | 80 | static void a9m9750dev_fpga_demux_handler(unsigned int irq, |
@@ -82,7 +82,7 @@ static void a9m9750dev_fpga_demux_handler(unsigned int irq, | |||
82 | { | 82 | { |
83 | u8 stat = __raw_readb(FPGA_ISR); | 83 | u8 stat = __raw_readb(FPGA_ISR); |
84 | 84 | ||
85 | desc->chip->mask_ack(irq); | 85 | desc->irq_data.chip->irq_mask_ack(&desc->irq_data); |
86 | 86 | ||
87 | while (stat != 0) { | 87 | while (stat != 0) { |
88 | int irqno = fls(stat) - 1; | 88 | int irqno = fls(stat) - 1; |
@@ -92,7 +92,7 @@ static void a9m9750dev_fpga_demux_handler(unsigned int irq, | |||
92 | generic_handle_irq(FPGA_IRQ(irqno)); | 92 | generic_handle_irq(FPGA_IRQ(irqno)); |
93 | } | 93 | } |
94 | 94 | ||
95 | desc->chip->unmask(irq); | 95 | desc->irq_data.chip->irq_unmask(&desc->irq_data); |
96 | } | 96 | } |
97 | 97 | ||
98 | void __init board_a9m9750dev_init_irq(void) | 98 | void __init board_a9m9750dev_init_irq(void) |