diff options
author | Kyle McMartin <kyle@redhat.com> | 2010-10-14 22:31:34 -0400 |
---|---|---|
committer | Matt Turner <mattst88@monolith.freenet-rz.de> | 2011-01-16 23:42:13 -0500 |
commit | 7d209c8110ecd49db46da786437485e8ef67f414 (patch) | |
tree | bc550d6f1a7933a56194390255c5b836e41817a7 /arch/alpha/kernel/sys_jensen.c | |
parent | a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc (diff) |
alpha: kill off alpha_do_IRQ
Good riddance... Nuke a pile of redundant handlers that the
generic code takes care of as well.
Tested-by: Michael Cree <mcree@orcon.net.nz>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/kernel/sys_jensen.c')
-rw-r--r-- | arch/alpha/kernel/sys_jensen.c | 47 |
1 files changed, 9 insertions, 38 deletions
diff --git a/arch/alpha/kernel/sys_jensen.c b/arch/alpha/kernel/sys_jensen.c index 460d82b5bc44..34f55e03d331 100644 --- a/arch/alpha/kernel/sys_jensen.c +++ b/arch/alpha/kernel/sys_jensen.c | |||
@@ -62,24 +62,6 @@ | |||
62 | * world. | 62 | * world. |
63 | */ | 63 | */ |
64 | 64 | ||
65 | static unsigned int | ||
66 | jensen_local_startup(unsigned int irq) | ||
67 | { | ||
68 | /* the parport is really hw IRQ 1, silly Jensen. */ | ||
69 | if (irq == 7) | ||
70 | i8259a_startup_irq(1); | ||
71 | |||
72 | return 0; | ||
73 | } | ||
74 | |||
75 | static void | ||
76 | jensen_local_shutdown(unsigned int irq) | ||
77 | { | ||
78 | /* the parport is really hw IRQ 1, silly Jensen. */ | ||
79 | if (irq == 7) | ||
80 | i8259a_disable_irq(1); | ||
81 | } | ||
82 | |||
83 | static void | 65 | static void |
84 | jensen_local_enable(unsigned int irq) | 66 | jensen_local_enable(unsigned int irq) |
85 | { | 67 | { |
@@ -97,29 +79,18 @@ jensen_local_disable(unsigned int irq) | |||
97 | } | 79 | } |
98 | 80 | ||
99 | static void | 81 | static void |
100 | jensen_local_ack(unsigned int irq) | 82 | jensen_local_mask_ack(unsigned int irq) |
101 | { | 83 | { |
102 | /* the parport is really hw IRQ 1, silly Jensen. */ | 84 | /* the parport is really hw IRQ 1, silly Jensen. */ |
103 | if (irq == 7) | 85 | if (irq == 7) |
104 | i8259a_mask_and_ack_irq(1); | 86 | i8259a_mask_and_ack_irq(1); |
105 | } | 87 | } |
106 | 88 | ||
107 | static void | ||
108 | jensen_local_end(unsigned int irq) | ||
109 | { | ||
110 | /* the parport is really hw IRQ 1, silly Jensen. */ | ||
111 | if (irq == 7) | ||
112 | i8259a_end_irq(1); | ||
113 | } | ||
114 | |||
115 | static struct irq_chip jensen_local_irq_type = { | 89 | static struct irq_chip jensen_local_irq_type = { |
116 | .name = "LOCAL", | 90 | .name = "LOCAL", |
117 | .startup = jensen_local_startup, | 91 | .unmask = jensen_local_enable, |
118 | .shutdown = jensen_local_shutdown, | 92 | .mask = jensen_local_disable, |
119 | .enable = jensen_local_enable, | 93 | .mask_ack = jensen_local_mask_ack, |
120 | .disable = jensen_local_disable, | ||
121 | .ack = jensen_local_ack, | ||
122 | .end = jensen_local_end, | ||
123 | }; | 94 | }; |
124 | 95 | ||
125 | static void | 96 | static void |
@@ -200,11 +171,11 @@ jensen_init_irq(void) | |||
200 | { | 171 | { |
201 | init_i8259a_irqs(); | 172 | init_i8259a_irqs(); |
202 | 173 | ||
203 | set_irq_chip_and_handler(1, &jensen_local_irq_type, alpha_do_IRQ); | 174 | set_irq_chip_and_handler(1, &jensen_local_irq_type, handle_level_irq); |
204 | set_irq_chip_and_handler(4, &jensen_local_irq_type, alpha_do_IRQ); | 175 | set_irq_chip_and_handler(4, &jensen_local_irq_type, handle_level_irq); |
205 | set_irq_chip_and_handler(3, &jensen_local_irq_type, alpha_do_IRQ); | 176 | set_irq_chip_and_handler(3, &jensen_local_irq_type, handle_level_irq); |
206 | set_irq_chip_and_handler(7, &jensen_local_irq_type, alpha_do_IRQ); | 177 | set_irq_chip_and_handler(7, &jensen_local_irq_type, handle_level_irq); |
207 | set_irq_chip_and_handler(9, &jensen_local_irq_type, alpha_do_IRQ); | 178 | set_irq_chip_and_handler(9, &jensen_local_irq_type, handle_level_irq); |
208 | 179 | ||
209 | common_init_isa_dma(); | 180 | common_init_isa_dma(); |
210 | } | 181 | } |