diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-02-26 02:01:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 21:19:14 -0400 |
commit | 1d05995b0880b23353741d5b2b826f7c2fd6a296 (patch) | |
tree | 47fa622ab354f0fb88a7cb626797de186068d329 /arch/sparc/kernel/irq_32.c | |
parent | bbdc2661eabddd442240533a66b2290f77d89ccc (diff) |
sparc32: introduce build_device_irq
build_device_irq() is used to encapsulate the plaform
specific details when we build an irq.
For now the default is a simple 1:1 but sun4d differs.
This patch refactors functionality - but does not change
the existing functionality.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq_32.c')
-rw-r--r-- | arch/sparc/kernel/irq_32.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c index b80b8bf0bf00..7c93df4099cb 100644 --- a/arch/sparc/kernel/irq_32.c +++ b/arch/sparc/kernel/irq_32.c | |||
@@ -582,6 +582,12 @@ int probe_irq_off(unsigned long mask) | |||
582 | } | 582 | } |
583 | EXPORT_SYMBOL(probe_irq_off); | 583 | EXPORT_SYMBOL(probe_irq_off); |
584 | 584 | ||
585 | static unsigned int build_device_irq(struct platform_device *op, | ||
586 | unsigned int real_irq) | ||
587 | { | ||
588 | return real_irq; | ||
589 | } | ||
590 | |||
585 | /* djhr | 591 | /* djhr |
586 | * This could probably be made indirect too and assigned in the CPU | 592 | * This could probably be made indirect too and assigned in the CPU |
587 | * bits of the code. That would be much nicer I think and would also | 593 | * bits of the code. That would be much nicer I think and would also |
@@ -592,6 +598,8 @@ EXPORT_SYMBOL(probe_irq_off); | |||
592 | 598 | ||
593 | void __init init_IRQ(void) | 599 | void __init init_IRQ(void) |
594 | { | 600 | { |
601 | sparc_irq_config.build_device_irq = build_device_irq; | ||
602 | |||
595 | switch (sparc_cpu_model) { | 603 | switch (sparc_cpu_model) { |
596 | case sun4c: | 604 | case sun4c: |
597 | case sun4: | 605 | case sun4: |