Skip to content

Commit

Permalink
ppc64: Use the correct prototypes for i8259 functions
Browse files Browse the repository at this point in the history
We still had an old copy of i8259.h lying around; this gets rid of it
and corrects the callers of i8259_init and i8259_irq.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Oct 28, 2005
1 parent a8e3d48 commit 2227718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
17 changes: 0 additions & 17 deletions arch/ppc64/kernel/i8259.h

This file was deleted.

7 changes: 3 additions & 4 deletions arch/ppc64/kernel/xics.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
#include <asm/xics.h>
#include <asm/hvcall.h>
#include <asm/machdep.h>

#include "i8259.h"
#include <asm/i8259.h>

static unsigned int xics_startup(unsigned int irq);
static void xics_enable_irq(unsigned int irq);
Expand Down Expand Up @@ -366,7 +365,7 @@ int xics_get_irq(struct pt_regs *regs)

/* for sanity, this had better be < NR_IRQS - 16 */
if (vec == xics_irq_8259_cascade_real) {
irq = i8259_irq(cpu);
irq = i8259_irq(regs);
if (irq == -1) {
/* Spurious cascaded interrupt. Still must ack xics */
xics_end_irq(irq_offset_up(xics_irq_8259_cascade));
Expand Down Expand Up @@ -589,7 +588,7 @@ static int __init xics_setup_i8259(void)
no_action, 0, "8259 cascade", NULL))
printk(KERN_ERR "xics_setup_i8259: couldn't get 8259 "
"cascade\n");
i8259_init(0);
i8259_init(0, 0);
}
return 0;
}
Expand Down

0 comments on commit 2227718

Please sign in to comment.