diff options
Diffstat (limited to 'arch/mips/kernel/i8259.c')
-rw-r--r-- | arch/mips/kernel/i8259.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 447759201d1d..b974ac9057f6 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
@@ -31,7 +31,7 @@ void disable_8259A_irq(unsigned int irq); | |||
31 | * moves to arch independent land | 31 | * moves to arch independent land |
32 | */ | 32 | */ |
33 | 33 | ||
34 | spinlock_t DEFINE_SPINLOCK(i8259A_lock); | 34 | DEFINE_SPINLOCK(i8259A_lock); |
35 | 35 | ||
36 | static void end_8259A_irq (unsigned int irq) | 36 | static void end_8259A_irq (unsigned int irq) |
37 | { | 37 | { |
@@ -52,14 +52,13 @@ static unsigned int startup_8259A_irq(unsigned int irq) | |||
52 | } | 52 | } |
53 | 53 | ||
54 | static struct hw_interrupt_type i8259A_irq_type = { | 54 | static struct hw_interrupt_type i8259A_irq_type = { |
55 | "XT-PIC", | 55 | .typename = "XT-PIC", |
56 | startup_8259A_irq, | 56 | .startup = startup_8259A_irq, |
57 | shutdown_8259A_irq, | 57 | .shutdown = shutdown_8259A_irq, |
58 | enable_8259A_irq, | 58 | .enable = enable_8259A_irq, |
59 | disable_8259A_irq, | 59 | .disable = disable_8259A_irq, |
60 | mask_and_ack_8259A, | 60 | .ack = mask_and_ack_8259A, |
61 | end_8259A_irq, | 61 | .end = end_8259A_irq, |
62 | NULL | ||
63 | }; | 62 | }; |
64 | 63 | ||
65 | /* | 64 | /* |
@@ -308,7 +307,7 @@ static struct resource pic2_io_resource = { | |||
308 | 307 | ||
309 | /* | 308 | /* |
310 | * On systems with i8259-style interrupt controllers we assume for | 309 | * On systems with i8259-style interrupt controllers we assume for |
311 | * driver compatibility reasons interrupts 0 - 15 to be the i8295 | 310 | * driver compatibility reasons interrupts 0 - 15 to be the i8259 |
312 | * interrupts even if the hardware uses a different interrupt numbering. | 311 | * interrupts even if the hardware uses a different interrupt numbering. |
313 | */ | 312 | */ |
314 | void __init init_i8259_irqs (void) | 313 | void __init init_i8259_irqs (void) |
@@ -322,7 +321,7 @@ void __init init_i8259_irqs (void) | |||
322 | 321 | ||
323 | for (i = 0; i < 16; i++) { | 322 | for (i = 0; i < 16; i++) { |
324 | irq_desc[i].status = IRQ_DISABLED; | 323 | irq_desc[i].status = IRQ_DISABLED; |
325 | irq_desc[i].action = 0; | 324 | irq_desc[i].action = NULL; |
326 | irq_desc[i].depth = 1; | 325 | irq_desc[i].depth = 1; |
327 | irq_desc[i].handler = &i8259A_irq_type; | 326 | irq_desc[i].handler = &i8259A_irq_type; |
328 | } | 327 | } |