aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ns9xxx/board-a9m9750dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ns9xxx/board-a9m9750dev.c')
-rw-r--r--arch/arm/mach-ns9xxx/board-a9m9750dev.c28
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
40static void a9m9750dev_fpga_ack_irq(unsigned int irq) 40static void a9m9750dev_fpga_ack_irq(struct irq_data *d)
41{ 41{
42 /* nothing */ 42 /* nothing */
43} 43}
44 44
45static void a9m9750dev_fpga_mask_irq(unsigned int irq) 45static 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
56static void a9m9750dev_fpga_maskack_irq(unsigned int irq) 56static 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
62static void a9m9750dev_fpga_unmask_irq(unsigned int irq) 62static 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
73static struct irq_chip a9m9750dev_fpga_chip = { 73static 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
80static void a9m9750dev_fpga_demux_handler(unsigned int irq, 80static 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
98void __init board_a9m9750dev_init_irq(void) 98void __init board_a9m9750dev_init_irq(void)