diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/handle.c | 5 | ||||
-rw-r--r-- | kernel/irq/manage.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 157c04c3b158..c20db0be9173 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -86,11 +86,6 @@ void init_kstat_irqs(struct irq_desc *desc, int cpu, int nr) | |||
86 | desc->kstat_irqs = (unsigned int *)ptr; | 86 | desc->kstat_irqs = (unsigned int *)ptr; |
87 | } | 87 | } |
88 | 88 | ||
89 | int __weak arch_init_chip_data(struct irq_desc *desc, int cpu) | ||
90 | { | ||
91 | return 0; | ||
92 | } | ||
93 | |||
94 | static void init_one_irq_desc(int irq, struct irq_desc *desc, int cpu) | 89 | static void init_one_irq_desc(int irq, struct irq_desc *desc, int cpu) |
95 | { | 90 | { |
96 | memcpy(desc, &irq_desc_init, sizeof(struct irq_desc)); | 91 | memcpy(desc, &irq_desc_init, sizeof(struct irq_desc)); |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 46953a06f4a8..c2741b02ad38 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -261,6 +261,15 @@ void enable_irq(unsigned int irq) | |||
261 | } | 261 | } |
262 | EXPORT_SYMBOL(enable_irq); | 262 | EXPORT_SYMBOL(enable_irq); |
263 | 263 | ||
264 | /* | ||
265 | * [ Not in kernel/irq/handle.c, so that GCC does not | ||
266 | * inline the __weak alias: ] | ||
267 | */ | ||
268 | int __weak arch_init_chip_data(struct irq_desc *desc, int cpu) | ||
269 | { | ||
270 | return 0; | ||
271 | } | ||
272 | |||
264 | static int set_irq_wake_real(unsigned int irq, unsigned int on) | 273 | static int set_irq_wake_real(unsigned int irq, unsigned int on) |
265 | { | 274 | { |
266 | struct irq_desc *desc = irq_to_desc(irq); | 275 | struct irq_desc *desc = irq_to_desc(irq); |