diff options
author | Grant Likely <grant.likely@linaro.org> | 2013-09-15 11:39:11 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2013-10-24 06:42:51 -0400 |
commit | 530210c7814e83564c7ca7bca8192515042c0b63 (patch) | |
tree | 09549bc731f9397cc6a533e091a47d116d5653b5 /arch/microblaze/pci | |
parent | 0c02c8007ea5554d028f99fd3e29fc201fdeeab3 (diff) |
of/irq: Replace of_irq with of_phandle_args
struct of_irq and struct of_phandle_args are exactly the same structure.
This patch makes the kernel use of_phandle_args everywhere. This in
itself isn't a big deal, but it makes some follow-on patches simpler.
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Tony Lindgren <tony@atomide.com>
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/microblaze/pci')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 4d5b1a9cd790..c9302c4f8a57 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -199,7 +199,7 @@ void pcibios_set_master(struct pci_dev *dev) | |||
199 | */ | 199 | */ |
200 | int pci_read_irq_line(struct pci_dev *pci_dev) | 200 | int pci_read_irq_line(struct pci_dev *pci_dev) |
201 | { | 201 | { |
202 | struct of_irq oirq; | 202 | struct of_phandle_args oirq; |
203 | unsigned int virq; | 203 | unsigned int virq; |
204 | 204 | ||
205 | /* The current device-tree that iSeries generates from the HV | 205 | /* The current device-tree that iSeries generates from the HV |
@@ -243,11 +243,10 @@ int pci_read_irq_line(struct pci_dev *pci_dev) | |||
243 | irq_set_irq_type(virq, IRQ_TYPE_LEVEL_LOW); | 243 | irq_set_irq_type(virq, IRQ_TYPE_LEVEL_LOW); |
244 | } else { | 244 | } else { |
245 | pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n", | 245 | pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n", |
246 | oirq.size, oirq.specifier[0], oirq.specifier[1], | 246 | oirq.args_count, oirq.args[0], oirq.args[1], |
247 | of_node_full_name(oirq.controller)); | 247 | of_node_full_name(oirq.np)); |
248 | 248 | ||
249 | virq = irq_create_of_mapping(oirq.controller, oirq.specifier, | 249 | virq = irq_create_of_mapping(oirq.np, oirq.args, oirq.args_count); |
250 | oirq.size); | ||
251 | } | 250 | } |
252 | if (!virq) { | 251 | if (!virq) { |
253 | pr_debug(" Failed to map !\n"); | 252 | pr_debug(" Failed to map !\n"); |