From: Paul Mundt Date: Thu, 21 May 2009 16:36:13 +0000 (+0900) Subject: sh: irq: Provide an arch_probe_nr_irqs() that wraps the machvec def. X-Git-Tag: v2.6.31-rc1~392^2~51^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d8586ba6e1415150e1bab89f0a05447bb6f2d6d5;p=karo-tx-linux.git sh: irq: Provide an arch_probe_nr_irqs() that wraps the machvec def. This is just a simple arch_probe_nr_irqs() stub that wraps to the platform defined number of IRQs. This can be made gradually more intelligent based on what we can infer from the INTC tables and so on. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index 878532b61762..3d09062f4682 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c @@ -279,3 +279,11 @@ void __init init_IRQ(void) irq_ctx_init(smp_processor_id()); } + +#ifdef CONFIG_SPARSE_IRQ +int __init arch_probe_nr_irqs(void) +{ + nr_irqs = sh_mv.mv_nr_irqs; + return 0; +} +#endif