diff options
author | Grant Likely <grant.likely@linaro.org> | 2013-09-15 11:55:53 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2013-10-24 06:42:57 -0400 |
commit | e6d30ab1e7d1281784672c0fc2ffa385cfb7279e (patch) | |
tree | dc50a67ca096c9d71775a3232e0bfcd6f7912735 /arch/powerpc/kernel/pci-common.c | |
parent | 530210c7814e83564c7ca7bca8192515042c0b63 (diff) |
of/irq: simplify args to irq_create_of_mapping
All the callers of irq_create_of_mapping() pass the contents of a struct
of_phandle_args structure to the function. Since all the callers already
have an of_phandle_args pointer, why not pass it directly to
irq_create_of_mapping()?
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Tony Lindgren <tony@atomide.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 96c46235fda2..a1e3e40ca3fd 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -266,7 +266,7 @@ static int pci_read_irq_line(struct pci_dev *pci_dev) | |||
266 | oirq.args_count, oirq.args[0], oirq.args[1], | 266 | oirq.args_count, oirq.args[0], oirq.args[1], |
267 | of_node_full_name(oirq.np)); | 267 | of_node_full_name(oirq.np)); |
268 | 268 | ||
269 | virq = irq_create_of_mapping(oirq.np, oirq.args, oirq.args_count); | 269 | virq = irq_create_of_mapping(&oirq); |
270 | } | 270 | } |
271 | if(virq == NO_IRQ) { | 271 | if(virq == NO_IRQ) { |
272 | pr_debug(" Failed to map !\n"); | 272 | pr_debug(" Failed to map !\n"); |