diff options
author | Roman Fietze <roman.fietze@telemotive.de> | 2009-12-07 21:39:50 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:10:37 -0500 |
commit | 40d50cf7ca956183f3a573bc21082e1c7d04fa7b (patch) | |
tree | b1e5c8f7396919742be17f51a1c7bf19684fe571 /arch/powerpc/kernel/irq.c | |
parent | 990d89c6636c1be300a4f2f914b95200b237d017 (diff) |
powerpc: Make "intspec" pointers in irq_host->xlate() const
Writing a driver using SCLPC on the MPC5200B I detected, that the
intspec arrays to map irqs to Linux virq cannot be const, because the
mapping and xlate functions only take non const pointers. All those
functions do not modify the intspec, so a const pointer could be used.
Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index a31176ace02b..042a53009701 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -725,7 +725,7 @@ unsigned int irq_create_mapping(struct irq_host *host, | |||
725 | EXPORT_SYMBOL_GPL(irq_create_mapping); | 725 | EXPORT_SYMBOL_GPL(irq_create_mapping); |
726 | 726 | ||
727 | unsigned int irq_create_of_mapping(struct device_node *controller, | 727 | unsigned int irq_create_of_mapping(struct device_node *controller, |
728 | u32 *intspec, unsigned int intsize) | 728 | const u32 *intspec, unsigned int intsize) |
729 | { | 729 | { |
730 | struct irq_host *host; | 730 | struct irq_host *host; |
731 | irq_hw_number_t hwirq; | 731 | irq_hw_number_t hwirq; |