diff options
Diffstat (limited to 'arch/alpha/kernel/irq_alpha.c')
-rw-r--r-- | arch/alpha/kernel/irq_alpha.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/alpha/kernel/irq_alpha.c b/arch/alpha/kernel/irq_alpha.c index 1b2c8bb81460..2d0679b60939 100644 --- a/arch/alpha/kernel/irq_alpha.c +++ b/arch/alpha/kernel/irq_alpha.c | |||
@@ -219,25 +219,12 @@ process_mcheck_info(unsigned long vector, unsigned long la_ptr, | |||
219 | * processed by PALcode, and comes in via entInt vector 1. | 219 | * processed by PALcode, and comes in via entInt vector 1. |
220 | */ | 220 | */ |
221 | 221 | ||
222 | static void rtc_enable_disable(unsigned int irq) { } | ||
223 | static unsigned int rtc_startup(unsigned int irq) { return 0; } | ||
224 | |||
225 | struct irqaction timer_irqaction = { | 222 | struct irqaction timer_irqaction = { |
226 | .handler = timer_interrupt, | 223 | .handler = timer_interrupt, |
227 | .flags = IRQF_DISABLED, | 224 | .flags = IRQF_DISABLED, |
228 | .name = "timer", | 225 | .name = "timer", |
229 | }; | 226 | }; |
230 | 227 | ||
231 | static struct irq_chip rtc_irq_type = { | ||
232 | .name = "RTC", | ||
233 | .startup = rtc_startup, | ||
234 | .shutdown = rtc_enable_disable, | ||
235 | .enable = rtc_enable_disable, | ||
236 | .disable = rtc_enable_disable, | ||
237 | .ack = rtc_enable_disable, | ||
238 | .end = rtc_enable_disable, | ||
239 | }; | ||
240 | |||
241 | void __init | 228 | void __init |
242 | init_rtc_irq(void) | 229 | init_rtc_irq(void) |
243 | { | 230 | { |
@@ -245,7 +232,8 @@ init_rtc_irq(void) | |||
245 | 232 | ||
246 | if (desc) { | 233 | if (desc) { |
247 | desc->status |= IRQ_DISABLED; | 234 | desc->status |= IRQ_DISABLED; |
248 | set_irq_chip(RTC_IRQ, &rtc_irq_type); | 235 | set_irq_chip_and_handler_name(RTC_IRQ, &no_irq_chip, |
236 | handle_simple_irq, "RTC"); | ||
249 | setup_irq(RTC_IRQ, &timer_irqaction); | 237 | setup_irq(RTC_IRQ, &timer_irqaction); |
250 | } | 238 | } |
251 | } | 239 | } |