diff options
Diffstat (limited to 'arch/mips/philips/pnx8550/common')
-rw-r--r-- | arch/mips/philips/pnx8550/common/int.c | 2 | ||||
-rw-r--r-- | arch/mips/philips/pnx8550/common/setup.c | 5 | ||||
-rw-r--r-- | arch/mips/philips/pnx8550/common/time.c | 11 |
3 files changed, 3 insertions, 15 deletions
diff --git a/arch/mips/philips/pnx8550/common/int.c b/arch/mips/philips/pnx8550/common/int.c index 8aca317d4624..099679a9dfb9 100644 --- a/arch/mips/philips/pnx8550/common/int.c +++ b/arch/mips/philips/pnx8550/common/int.c | |||
@@ -207,7 +207,7 @@ static void end_irq(unsigned int irq) | |||
207 | } | 207 | } |
208 | } | 208 | } |
209 | 209 | ||
210 | static struct hw_interrupt_type level_irq_type = { | 210 | static struct irq_chip level_irq_type = { |
211 | .typename = "PNX Level IRQ", | 211 | .typename = "PNX Level IRQ", |
212 | .startup = startup_irq, | 212 | .startup = startup_irq, |
213 | .shutdown = shutdown_irq, | 213 | .shutdown = shutdown_irq, |
diff --git a/arch/mips/philips/pnx8550/common/setup.c b/arch/mips/philips/pnx8550/common/setup.c index 8ac81a9dc293..36b0c8bc6c06 100644 --- a/arch/mips/philips/pnx8550/common/setup.c +++ b/arch/mips/philips/pnx8550/common/setup.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
22 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
23 | #include <linux/irq.h> | ||
23 | #include <linux/mm.h> | 24 | #include <linux/mm.h> |
24 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
25 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
@@ -48,10 +49,7 @@ extern void pnx8550_machine_halt(void); | |||
48 | extern void pnx8550_machine_power_off(void); | 49 | extern void pnx8550_machine_power_off(void); |
49 | extern struct resource ioport_resource; | 50 | extern struct resource ioport_resource; |
50 | extern struct resource iomem_resource; | 51 | extern struct resource iomem_resource; |
51 | extern void (*board_time_init)(void); | ||
52 | extern void pnx8550_time_init(void); | 52 | extern void pnx8550_time_init(void); |
53 | extern void (*board_timer_setup)(struct irqaction *irq); | ||
54 | extern void pnx8550_timer_setup(struct irqaction *irq); | ||
55 | extern void rs_kgdb_hook(int tty_no); | 53 | extern void rs_kgdb_hook(int tty_no); |
56 | extern void prom_printf(char *fmt, ...); | 54 | extern void prom_printf(char *fmt, ...); |
57 | extern char *prom_getcmdline(void); | 55 | extern char *prom_getcmdline(void); |
@@ -110,7 +108,6 @@ void __init plat_mem_setup(void) | |||
110 | pm_power_off = pnx8550_machine_power_off; | 108 | pm_power_off = pnx8550_machine_power_off; |
111 | 109 | ||
112 | board_time_init = pnx8550_time_init; | 110 | board_time_init = pnx8550_time_init; |
113 | board_timer_setup = pnx8550_timer_setup; | ||
114 | 111 | ||
115 | /* Clear the Global 2 Register, PCI Inta Output Enable Registers | 112 | /* Clear the Global 2 Register, PCI Inta Output Enable Registers |
116 | Bit 1:Enable DAC Powerdown | 113 | Bit 1:Enable DAC Powerdown |
diff --git a/arch/mips/philips/pnx8550/common/time.c b/arch/mips/philips/pnx8550/common/time.c index 70664ea96b92..0af655b1f330 100644 --- a/arch/mips/philips/pnx8550/common/time.c +++ b/arch/mips/philips/pnx8550/common/time.c | |||
@@ -70,16 +70,7 @@ void pnx8550_time_init(void) | |||
70 | mips_hpt_frequency = 27UL * ((1000000UL * n)/(m * pow2p)); | 70 | mips_hpt_frequency = 27UL * ((1000000UL * n)/(m * pow2p)); |
71 | } | 71 | } |
72 | 72 | ||
73 | /* | 73 | void __init plat_timer_setup(struct irqaction *irq) |
74 | * pnx8550_timer_setup() - it does the following things: | ||
75 | * | ||
76 | * 5) board_timer_setup() - | ||
77 | * a) (optional) over-write any choices made above by time_init(). | ||
78 | * b) machine specific code should setup the timer irqaction. | ||
79 | * c) enable the timer interrupt | ||
80 | */ | ||
81 | |||
82 | void __init pnx8550_timer_setup(struct irqaction *irq) | ||
83 | { | 74 | { |
84 | int configPR; | 75 | int configPR; |
85 | 76 | ||