diff options
-rw-r--r-- | arch/ppc/syslib/cpc700_pic.c | 12 | ||||
-rw-r--r-- | arch/ppc/syslib/i8259.c | 13 | ||||
-rw-r--r-- | arch/ppc/syslib/open_pic2.c | 12 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc403_pic.c | 11 | ||||
-rw-r--r-- | arch/ppc/syslib/xilinx_pic.c | 13 |
5 files changed, 23 insertions, 38 deletions
diff --git a/arch/ppc/syslib/cpc700_pic.c b/arch/ppc/syslib/cpc700_pic.c index 774709807538..75fe8eb10693 100644 --- a/arch/ppc/syslib/cpc700_pic.c +++ b/arch/ppc/syslib/cpc700_pic.c | |||
@@ -90,14 +90,10 @@ cpc700_mask_and_ack_irq(unsigned int irq) | |||
90 | } | 90 | } |
91 | 91 | ||
92 | static struct hw_interrupt_type cpc700_pic = { | 92 | static struct hw_interrupt_type cpc700_pic = { |
93 | "CPC700 PIC", | 93 | .typename = "CPC700 PIC", |
94 | NULL, | 94 | .enable = cpc700_unmask_irq, |
95 | NULL, | 95 | .disable = cpc700_mask_irq, |
96 | cpc700_unmask_irq, | 96 | .ack = cpc700_mask_and_ack_irq, |
97 | cpc700_mask_irq, | ||
98 | cpc700_mask_and_ack_irq, | ||
99 | NULL, | ||
100 | NULL | ||
101 | }; | 97 | }; |
102 | 98 | ||
103 | __init static void | 99 | __init static void |
diff --git a/arch/ppc/syslib/i8259.c b/arch/ppc/syslib/i8259.c index b9391e650141..5c7908c20e43 100644 --- a/arch/ppc/syslib/i8259.c +++ b/arch/ppc/syslib/i8259.c | |||
@@ -129,14 +129,11 @@ static void i8259_end_irq(unsigned int irq) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | struct hw_interrupt_type i8259_pic = { | 131 | struct hw_interrupt_type i8259_pic = { |
132 | " i8259 ", | 132 | .typename = " i8259 ", |
133 | NULL, | 133 | .enable = i8259_unmask_irq, |
134 | NULL, | 134 | .disable = i8259_mask_irq, |
135 | i8259_unmask_irq, | 135 | .ack = i8259_mask_and_ack_irq, |
136 | i8259_mask_irq, | 136 | .end = i8259_end_irq, |
137 | i8259_mask_and_ack_irq, | ||
138 | i8259_end_irq, | ||
139 | NULL | ||
140 | }; | 137 | }; |
141 | 138 | ||
142 | static struct resource pic1_iores = { | 139 | static struct resource pic1_iores = { |
diff --git a/arch/ppc/syslib/open_pic2.c b/arch/ppc/syslib/open_pic2.c index 7e272c51a497..2e0ea92144f6 100644 --- a/arch/ppc/syslib/open_pic2.c +++ b/arch/ppc/syslib/open_pic2.c | |||
@@ -82,13 +82,11 @@ static void openpic2_end_irq(unsigned int irq_nr); | |||
82 | static void openpic2_ack_irq(unsigned int irq_nr); | 82 | static void openpic2_ack_irq(unsigned int irq_nr); |
83 | 83 | ||
84 | struct hw_interrupt_type open_pic2 = { | 84 | struct hw_interrupt_type open_pic2 = { |
85 | " OpenPIC2 ", | 85 | .typename = " OpenPIC2 ", |
86 | NULL, | 86 | .enable = openpic2_enable_irq, |
87 | NULL, | 87 | .disable = openpic2_disable_irq, |
88 | openpic2_enable_irq, | 88 | .ack = openpic2_ack_irq, |
89 | openpic2_disable_irq, | 89 | .end = openpic2_end_irq, |
90 | openpic2_ack_irq, | ||
91 | openpic2_end_irq, | ||
92 | }; | 90 | }; |
93 | 91 | ||
94 | /* | 92 | /* |
diff --git a/arch/ppc/syslib/ppc403_pic.c b/arch/ppc/syslib/ppc403_pic.c index 06cb0af2a58d..ce4d1deb86e9 100644 --- a/arch/ppc/syslib/ppc403_pic.c +++ b/arch/ppc/syslib/ppc403_pic.c | |||
@@ -34,13 +34,10 @@ static void ppc403_aic_disable(unsigned int irq); | |||
34 | static void ppc403_aic_disable_and_ack(unsigned int irq); | 34 | static void ppc403_aic_disable_and_ack(unsigned int irq); |
35 | 35 | ||
36 | static struct hw_interrupt_type ppc403_aic = { | 36 | static struct hw_interrupt_type ppc403_aic = { |
37 | "403GC AIC", | 37 | .typename = "403GC AIC", |
38 | NULL, | 38 | .enable = ppc403_aic_enable, |
39 | NULL, | 39 | .disable = ppc403_aic_disable, |
40 | ppc403_aic_enable, | 40 | .ack = ppc403_aic_disable_and_ack, |
41 | ppc403_aic_disable, | ||
42 | ppc403_aic_disable_and_ack, | ||
43 | 0 | ||
44 | }; | 41 | }; |
45 | 42 | ||
46 | int | 43 | int |
diff --git a/arch/ppc/syslib/xilinx_pic.c b/arch/ppc/syslib/xilinx_pic.c index e0bd66f0847a..2cbcad278cef 100644 --- a/arch/ppc/syslib/xilinx_pic.c +++ b/arch/ppc/syslib/xilinx_pic.c | |||
@@ -79,14 +79,11 @@ xilinx_intc_end(unsigned int irq) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | static struct hw_interrupt_type xilinx_intc = { | 81 | static struct hw_interrupt_type xilinx_intc = { |
82 | "Xilinx Interrupt Controller", | 82 | .typename = "Xilinx Interrupt Controller", |
83 | NULL, | 83 | .enable = xilinx_intc_enable, |
84 | NULL, | 84 | .disable = xilinx_intc_disable, |
85 | xilinx_intc_enable, | 85 | .ack = xilinx_intc_disable_and_ack, |
86 | xilinx_intc_disable, | 86 | .end = xilinx_intc_end, |
87 | xilinx_intc_disable_and_ack, | ||
88 | xilinx_intc_end, | ||
89 | 0 | ||
90 | }; | 87 | }; |
91 | 88 | ||
92 | int | 89 | int |