diff options
Diffstat (limited to 'arch/mips/ite-boards')
-rw-r--r-- | arch/mips/ite-boards/generic/irq.c | 4 | ||||
-rw-r--r-- | arch/mips/ite-boards/generic/it8172_setup.c | 5 | ||||
-rw-r--r-- | arch/mips/ite-boards/generic/time.c | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/mips/ite-boards/generic/irq.c b/arch/mips/ite-boards/generic/irq.c index a6749c56fe38..cb59ca4f76f0 100644 --- a/arch/mips/ite-boards/generic/irq.c +++ b/arch/mips/ite-boards/generic/irq.c | |||
@@ -133,7 +133,7 @@ static void end_ite_irq(unsigned int irq) | |||
133 | enable_it8172_irq(irq); | 133 | enable_it8172_irq(irq); |
134 | } | 134 | } |
135 | 135 | ||
136 | static struct hw_interrupt_type it8172_irq_type = { | 136 | static struct irq_chip it8172_irq_type = { |
137 | .typename = "ITE8172", | 137 | .typename = "ITE8172", |
138 | .startup = startup_ite_irq, | 138 | .startup = startup_ite_irq, |
139 | .shutdown = shutdown_ite_irq, | 139 | .shutdown = shutdown_ite_irq, |
@@ -153,7 +153,7 @@ static void ack_none(unsigned int irq) { } | |||
153 | #define shutdown_none disable_none | 153 | #define shutdown_none disable_none |
154 | #define end_none enable_none | 154 | #define end_none enable_none |
155 | 155 | ||
156 | static struct hw_interrupt_type cp0_irq_type = { | 156 | static struct irq_chip cp0_irq_type = { |
157 | .typename = "CP0 Count", | 157 | .typename = "CP0 Count", |
158 | .startup = startup_none, | 158 | .startup = startup_none, |
159 | .shutdown = shutdown_none, | 159 | .shutdown = shutdown_none, |
diff --git a/arch/mips/ite-boards/generic/it8172_setup.c b/arch/mips/ite-boards/generic/it8172_setup.c index a4615a5904aa..07faf3cacff2 100644 --- a/arch/mips/ite-boards/generic/it8172_setup.c +++ b/arch/mips/ite-boards/generic/it8172_setup.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/sched.h> | 30 | #include <linux/sched.h> |
31 | #include <linux/ioport.h> | 31 | #include <linux/ioport.h> |
32 | #include <linux/irq.h> | ||
32 | #include <linux/serial_reg.h> | 33 | #include <linux/serial_reg.h> |
33 | #include <linux/major.h> | 34 | #include <linux/major.h> |
34 | #include <linux/kdev_t.h> | 35 | #include <linux/kdev_t.h> |
@@ -58,10 +59,7 @@ extern void it8172_restart(char *command); | |||
58 | extern void it8172_halt(void); | 59 | extern void it8172_halt(void); |
59 | extern void it8172_power_off(void); | 60 | extern void it8172_power_off(void); |
60 | 61 | ||
61 | extern void (*board_time_init)(void); | ||
62 | extern void (*board_timer_setup)(struct irqaction *irq); | ||
63 | extern void it8172_time_init(void); | 62 | extern void it8172_time_init(void); |
64 | extern void it8172_timer_setup(struct irqaction *irq); | ||
65 | 63 | ||
66 | #ifdef CONFIG_IT8172_REVC | 64 | #ifdef CONFIG_IT8172_REVC |
67 | struct { | 65 | struct { |
@@ -169,7 +167,6 @@ void __init plat_mem_setup(void) | |||
169 | clear_c0_status(ST0_FR); | 167 | clear_c0_status(ST0_FR); |
170 | 168 | ||
171 | board_time_init = it8172_time_init; | 169 | board_time_init = it8172_time_init; |
172 | board_timer_setup = it8172_timer_setup; | ||
173 | 170 | ||
174 | _machine_restart = it8172_restart; | 171 | _machine_restart = it8172_restart; |
175 | _machine_halt = it8172_halt; | 172 | _machine_halt = it8172_halt; |
diff --git a/arch/mips/ite-boards/generic/time.c b/arch/mips/ite-boards/generic/time.c index dee497a91807..3dc55569ff7f 100644 --- a/arch/mips/ite-boards/generic/time.c +++ b/arch/mips/ite-boards/generic/time.c | |||
@@ -233,7 +233,8 @@ void __init it8172_time_init(void) | |||
233 | } | 233 | } |
234 | 234 | ||
235 | #define ALLINTS (IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5) | 235 | #define ALLINTS (IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5) |
236 | void __init it8172_timer_setup(struct irqaction *irq) | 236 | |
237 | void __init plat_timer_setup(struct irqaction *irq) | ||
237 | { | 238 | { |
238 | puts("timer_setup\n"); | 239 | puts("timer_setup\n"); |
239 | put32(NR_IRQS); | 240 | put32(NR_IRQS); |