aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-09-19 12:22:36 -0400
committerShawn Guo <shawn.guo@freescale.com>2014-05-16 04:19:12 -0400
commitefc5383516e7c4d9ddeebab3eb3601467d7eb8f8 (patch)
tree11412d4e393cf862849db1ab43531ce108f073ca
parent45ac0e313e1da93616df4e2d839681e61fd45951 (diff)
ENGR00313685-1 of/irq: Rename of_irq_map_* functions to of_irq_parse_*
commit 0c02c8007ea5554d028f99fd3e29fc201fdeeab3 upstream. The OF irq handling code has been overloading the term 'map' to refer to both parsing the data in the device tree and mapping it to the internal linux irq system. This is probably because the device tree does have the concept of an 'interrupt-map' function for translating interrupt references from one node to another, but 'map' is still confusing when the primary purpose of some of the functions are to parse the DT data. This patch renames all the of_irq_map_* functions to of_irq_parse_* which makes it clear that there is a difference between the parsing phase and the mapping phase. Kernel code can make use of just the parsing or just the mapping support as needed by the subsystem. The patch was generated mechanically with a handful of sed commands. Signed-off-by: Grant Likely <grant.likely@linaro.org> Acked-by: Michal Simek <monstr@monstr.eu> Acked-by: Tony Lindgren <tony@atomide.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Conflicts: arch/arm/mach-integrator/pci_v3.c arch/mips/pci/pci-rt3883.c drivers/of/irq.c
-rw-r--r--arch/microblaze/pci/pci-common.c2
-rw-r--r--arch/mips/pci/fixup-lantiq.c2
-rw-r--r--arch/powerpc/kernel/pci-common.c2
-rw-r--r--arch/powerpc/platforms/cell/celleb_scc_pciex.c2
-rw-r--r--arch/powerpc/platforms/cell/celleb_scc_sio.c2
-rw-r--r--arch/powerpc/platforms/cell/spider-pic.c2
-rw-r--r--arch/powerpc/platforms/cell/spu_manage.c2
-rw-r--r--arch/powerpc/platforms/fsl_uli1575.c2
-rw-r--r--arch/powerpc/platforms/powermac/pic.c2
-rw-r--r--arch/powerpc/platforms/pseries/event_sources.c2
-rw-r--r--arch/powerpc/sysdev/mpic_msi.c2
-rw-r--r--arch/x86/kernel/devicetree.c2
-rw-r--r--drivers/of/address.c4
-rw-r--r--drivers/of/irq.c28
-rw-r--r--drivers/of/of_pci_irq.c10
-rw-r--r--drivers/pci/host/pci-mvebu.c2
-rw-r--r--include/linux/of_irq.h8
-rw-r--r--include/linux/of_pci.h2
18 files changed, 39 insertions, 39 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index bdb8ea100e73..1a5bc93ca940 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -217,7 +217,7 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
217 memset(&oirq, 0xff, sizeof(oirq)); 217 memset(&oirq, 0xff, sizeof(oirq));
218#endif 218#endif
219 /* Try to get a mapping from the device-tree */ 219 /* Try to get a mapping from the device-tree */
220 if (of_irq_map_pci(pci_dev, &oirq)) { 220 if (of_irq_parse_pci(pci_dev, &oirq)) {
221 u8 line, pin; 221 u8 line, pin;
222 222
223 /* If that fails, lets fallback to what is in the config 223 /* If that fails, lets fallback to what is in the config
diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c
index 6c829df28dc7..2e8dbfedae53 100644
--- a/arch/mips/pci/fixup-lantiq.c
+++ b/arch/mips/pci/fixup-lantiq.c
@@ -28,7 +28,7 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
28 struct of_irq dev_irq; 28 struct of_irq dev_irq;
29 int irq; 29 int irq;
30 30
31 if (of_irq_map_pci(dev, &dev_irq)) { 31 if (of_irq_parse_pci(dev, &dev_irq)) {
32 dev_err(&dev->dev, "trying to map irq for unknown slot:%d pin:%d\n", 32 dev_err(&dev->dev, "trying to map irq for unknown slot:%d pin:%d\n",
33 slot, pin); 33 slot, pin);
34 return 0; 34 return 0;
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index f46914a0f33e..63ed28a2a545 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -237,7 +237,7 @@ static int pci_read_irq_line(struct pci_dev *pci_dev)
237 memset(&oirq, 0xff, sizeof(oirq)); 237 memset(&oirq, 0xff, sizeof(oirq));
238#endif 238#endif
239 /* Try to get a mapping from the device-tree */ 239 /* Try to get a mapping from the device-tree */
240 if (of_irq_map_pci(pci_dev, &oirq)) { 240 if (of_irq_parse_pci(pci_dev, &oirq)) {
241 u8 line, pin; 241 u8 line, pin;
242 242
243 /* If that fails, lets fallback to what is in the config 243 /* If that fails, lets fallback to what is in the config
diff --git a/arch/powerpc/platforms/cell/celleb_scc_pciex.c b/arch/powerpc/platforms/cell/celleb_scc_pciex.c
index 14be2bd358b8..40bc371096b7 100644
--- a/arch/powerpc/platforms/cell/celleb_scc_pciex.c
+++ b/arch/powerpc/platforms/cell/celleb_scc_pciex.c
@@ -507,7 +507,7 @@ static __init int celleb_setup_pciex(struct device_node *node,
507 phb->ops = &scc_pciex_pci_ops; 507 phb->ops = &scc_pciex_pci_ops;
508 508
509 /* internal interrupt handler */ 509 /* internal interrupt handler */
510 if (of_irq_map_one(node, 1, &oirq)) { 510 if (of_irq_parse_one(node, 1, &oirq)) {
511 pr_err("PCIEXC:Failed to map irq\n"); 511 pr_err("PCIEXC:Failed to map irq\n");
512 goto error; 512 goto error;
513 } 513 }
diff --git a/arch/powerpc/platforms/cell/celleb_scc_sio.c b/arch/powerpc/platforms/cell/celleb_scc_sio.c
index 9c339ec646f5..96388b202f4e 100644
--- a/arch/powerpc/platforms/cell/celleb_scc_sio.c
+++ b/arch/powerpc/platforms/cell/celleb_scc_sio.c
@@ -53,7 +53,7 @@ static int __init txx9_serial_init(void)
53 if (!(txx9_serial_bitmap & (1<<i))) 53 if (!(txx9_serial_bitmap & (1<<i)))
54 continue; 54 continue;
55 55
56 if (of_irq_map_one(node, i, &irq)) 56 if (of_irq_parse_one(node, i, &irq))
57 continue; 57 continue;
58 if (of_address_to_resource(node, 58 if (of_address_to_resource(node,
59 txx9_scc_tab[i].index, &res)) 59 txx9_scc_tab[i].index, &res))
diff --git a/arch/powerpc/platforms/cell/spider-pic.c b/arch/powerpc/platforms/cell/spider-pic.c
index 8e299447127e..b491f406560a 100644
--- a/arch/powerpc/platforms/cell/spider-pic.c
+++ b/arch/powerpc/platforms/cell/spider-pic.c
@@ -236,7 +236,7 @@ static unsigned int __init spider_find_cascade_and_node(struct spider_pic *pic)
236 * tree in case the device-tree is ever fixed 236 * tree in case the device-tree is ever fixed
237 */ 237 */
238 struct of_irq oirq; 238 struct of_irq oirq;
239 if (of_irq_map_one(pic->host->of_node, 0, &oirq) == 0) { 239 if (of_irq_parse_one(pic->host->of_node, 0, &oirq) == 0) {
240 virq = irq_create_of_mapping(oirq.controller, oirq.specifier, 240 virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
241 oirq.size); 241 oirq.size);
242 return virq; 242 return virq;
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c
index 2bb6977c0a5a..e6cdb81a0959 100644
--- a/arch/powerpc/platforms/cell/spu_manage.c
+++ b/arch/powerpc/platforms/cell/spu_manage.c
@@ -182,7 +182,7 @@ static int __init spu_map_interrupts(struct spu *spu, struct device_node *np)
182 int i; 182 int i;
183 183
184 for (i=0; i < 3; i++) { 184 for (i=0; i < 3; i++) {
185 ret = of_irq_map_one(np, i, &oirq); 185 ret = of_irq_parse_one(np, i, &oirq);
186 if (ret) { 186 if (ret) {
187 pr_debug("spu_new: failed to get irq %d\n", i); 187 pr_debug("spu_new: failed to get irq %d\n", i);
188 goto err; 188 goto err;
diff --git a/arch/powerpc/platforms/fsl_uli1575.c b/arch/powerpc/platforms/fsl_uli1575.c
index 92ac9b52b32d..ac539c1cd808 100644
--- a/arch/powerpc/platforms/fsl_uli1575.c
+++ b/arch/powerpc/platforms/fsl_uli1575.c
@@ -333,7 +333,7 @@ static void hpcd_final_uli5288(struct pci_dev *dev)
333 333
334 laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); 334 laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8);
335 laddr[1] = laddr[2] = 0; 335 laddr[1] = laddr[2] = 0;
336 of_irq_map_raw(hosenode, &pin, 1, laddr, &oirq); 336 of_irq_parse_raw(hosenode, &pin, 1, laddr, &oirq);
337 virq = irq_create_of_mapping(oirq.controller, oirq.specifier, 337 virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
338 oirq.size); 338 oirq.size);
339 dev->irq = virq; 339 dev->irq = virq;
diff --git a/arch/powerpc/platforms/powermac/pic.c b/arch/powerpc/platforms/powermac/pic.c
index 31036b56670e..720663e29f47 100644
--- a/arch/powerpc/platforms/powermac/pic.c
+++ b/arch/powerpc/platforms/powermac/pic.c
@@ -393,7 +393,7 @@ static void __init pmac_pic_probe_oldstyle(void)
393#endif 393#endif
394} 394}
395 395
396int of_irq_map_oldworld(struct device_node *device, int index, 396int of_irq_parse_oldworld(struct device_node *device, int index,
397 struct of_irq *out_irq) 397 struct of_irq *out_irq)
398{ 398{
399 const u32 *ints = NULL; 399 const u32 *ints = NULL;
diff --git a/arch/powerpc/platforms/pseries/event_sources.c b/arch/powerpc/platforms/pseries/event_sources.c
index 2605c310166a..850c18c457ad 100644
--- a/arch/powerpc/platforms/pseries/event_sources.c
+++ b/arch/powerpc/platforms/pseries/event_sources.c
@@ -55,7 +55,7 @@ void request_event_sources_irqs(struct device_node *np,
55 /* Else use normal interrupt tree parsing */ 55 /* Else use normal interrupt tree parsing */
56 else { 56 else {
57 /* First try to do a proper OF tree parsing */ 57 /* First try to do a proper OF tree parsing */
58 for (index = 0; of_irq_map_one(np, index, &oirq) == 0; 58 for (index = 0; of_irq_parse_one(np, index, &oirq) == 0;
59 index++) { 59 index++) {
60 if (count > 15) 60 if (count > 15)
61 break; 61 break;
diff --git a/arch/powerpc/sysdev/mpic_msi.c b/arch/powerpc/sysdev/mpic_msi.c
index bbf342c88314..463e3a7c193c 100644
--- a/arch/powerpc/sysdev/mpic_msi.c
+++ b/arch/powerpc/sysdev/mpic_msi.c
@@ -63,7 +63,7 @@ static int mpic_msi_reserve_u3_hwirqs(struct mpic *mpic)
63 pr_debug("mpic: mapping hwirqs for %s\n", np->full_name); 63 pr_debug("mpic: mapping hwirqs for %s\n", np->full_name);
64 64
65 index = 0; 65 index = 0;
66 while (of_irq_map_one(np, index++, &oirq) == 0) { 66 while (of_irq_parse_one(np, index++, &oirq) == 0) {
67 ops->xlate(mpic->irqhost, NULL, oirq.specifier, 67 ops->xlate(mpic->irqhost, NULL, oirq.specifier,
68 oirq.size, &hwirq, &flags); 68 oirq.size, &hwirq, &flags);
69 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, hwirq); 69 msi_bitmap_reserve_hwirq(&mpic->msi_bitmap, hwirq);
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c
index b1581527a236..336193d31ace 100644
--- a/arch/x86/kernel/devicetree.c
+++ b/arch/x86/kernel/devicetree.c
@@ -117,7 +117,7 @@ static int x86_of_pci_irq_enable(struct pci_dev *dev)
117 if (!pin) 117 if (!pin)
118 return 0; 118 return 0;
119 119
120 ret = of_irq_map_pci(dev, &oirq); 120 ret = of_irq_parse_pci(dev, &oirq);
121 if (ret) 121 if (ret)
122 return ret; 122 return ret;
123 123
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 3c4b2af51611..6d38d0452bc0 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -524,12 +524,12 @@ static u64 __of_translate_address(struct device_node *dev,
524 pbus->count_cells(dev, &pna, &pns); 524 pbus->count_cells(dev, &pna, &pns);
525 if (!OF_CHECK_COUNTS(pna, pns)) { 525 if (!OF_CHECK_COUNTS(pna, pns)) {
526 printk(KERN_ERR "prom_parse: Bad cell count for %s\n", 526 printk(KERN_ERR "prom_parse: Bad cell count for %s\n",
527 dev->full_name); 527 of_node_full_name(dev));
528 break; 528 break;
529 } 529 }
530 530
531 pr_debug("OF: parent bus is %s (na=%d, ns=%d) on %s\n", 531 pr_debug("OF: parent bus is %s (na=%d, ns=%d) on %s\n",
532 pbus->name, pna, pns, parent->full_name); 532 pbus->name, pna, pns, of_node_full_name(parent));
533 533
534 /* Apply bus translation */ 534 /* Apply bus translation */
535 if (of_translate_one(dev, bus, pbus, addr, na, ns, pna, rprop)) 535 if (of_translate_one(dev, bus, pbus, addr, na, ns, pna, rprop))
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index a3c1c5aae6a9..6dacacf22df4 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -31,14 +31,14 @@
31 * @device: Device node of the device whose interrupt is to be mapped 31 * @device: Device node of the device whose interrupt is to be mapped
32 * @index: Index of the interrupt to map 32 * @index: Index of the interrupt to map
33 * 33 *
34 * This function is a wrapper that chains of_irq_map_one() and 34 * This function is a wrapper that chains of_irq_parse_one() and
35 * irq_create_of_mapping() to make things easier to callers 35 * irq_create_of_mapping() to make things easier to callers
36 */ 36 */
37unsigned int irq_of_parse_and_map(struct device_node *dev, int index) 37unsigned int irq_of_parse_and_map(struct device_node *dev, int index)
38{ 38{
39 struct of_irq oirq; 39 struct of_irq oirq;
40 40
41 if (of_irq_map_one(dev, index, &oirq)) 41 if (of_irq_parse_one(dev, index, &oirq))
42 return 0; 42 return 0;
43 43
44 return irq_create_of_mapping(oirq.controller, oirq.specifier, 44 return irq_create_of_mapping(oirq.controller, oirq.specifier,
@@ -79,7 +79,7 @@ struct device_node *of_irq_find_parent(struct device_node *child)
79} 79}
80 80
81/** 81/**
82 * of_irq_map_raw - Low level interrupt tree parsing 82 * of_irq_parse_raw - Low level interrupt tree parsing
83 * @parent: the device interrupt parent 83 * @parent: the device interrupt parent
84 * @intspec: interrupt specifier ("interrupts" property of the device) 84 * @intspec: interrupt specifier ("interrupts" property of the device)
85 * @ointsize: size of the passed in interrupt specifier 85 * @ointsize: size of the passed in interrupt specifier
@@ -93,7 +93,7 @@ struct device_node *of_irq_find_parent(struct device_node *child)
93 * properties, for example when resolving PCI interrupts when no device 93 * properties, for example when resolving PCI interrupts when no device
94 * node exist for the parent. 94 * node exist for the parent.
95 */ 95 */
96int of_irq_map_raw(struct device_node *parent, const __be32 *intspec, 96int of_irq_parse_raw(struct device_node *parent, const __be32 *intspec,
97 u32 ointsize, const __be32 *addr, struct of_irq *out_irq) 97 u32 ointsize, const __be32 *addr, struct of_irq *out_irq)
98{ 98{
99 struct device_node *ipar, *tnode, *old = NULL, *newpar = NULL; 99 struct device_node *ipar, *tnode, *old = NULL, *newpar = NULL;
@@ -101,7 +101,7 @@ int of_irq_map_raw(struct device_node *parent, const __be32 *intspec,
101 u32 intsize = 1, addrsize, newintsize = 0, newaddrsize = 0; 101 u32 intsize = 1, addrsize, newintsize = 0, newaddrsize = 0;
102 int imaplen, match, i; 102 int imaplen, match, i;
103 103
104 pr_debug("of_irq_map_raw: par=%s,intspec=[0x%08x 0x%08x...],ointsize=%d\n", 104 pr_debug("of_irq_parse_raw: par=%s,intspec=[0x%08x 0x%08x...],ointsize=%d\n",
105 parent->full_name, be32_to_cpup(intspec), 105 parent->full_name, be32_to_cpup(intspec),
106 be32_to_cpup(intspec + 1), ointsize); 106 be32_to_cpup(intspec + 1), ointsize);
107 107
@@ -126,7 +126,7 @@ int of_irq_map_raw(struct device_node *parent, const __be32 *intspec,
126 goto fail; 126 goto fail;
127 } 127 }
128 128
129 pr_debug("of_irq_map_raw: ipar=%s, size=%d\n", ipar->full_name, intsize); 129 pr_debug("of_irq_parse_raw: ipar=%s, size=%d\n", ipar->full_name, intsize);
130 130
131 if (ointsize != intsize) 131 if (ointsize != intsize)
132 return -EINVAL; 132 return -EINVAL;
@@ -269,29 +269,29 @@ int of_irq_map_raw(struct device_node *parent, const __be32 *intspec,
269 269
270 return -EINVAL; 270 return -EINVAL;
271} 271}
272EXPORT_SYMBOL_GPL(of_irq_map_raw); 272EXPORT_SYMBOL_GPL(of_irq_parse_raw);
273 273
274/** 274/**
275 * of_irq_map_one - Resolve an interrupt for a device 275 * of_irq_parse_one - Resolve an interrupt for a device
276 * @device: the device whose interrupt is to be resolved 276 * @device: the device whose interrupt is to be resolved
277 * @index: index of the interrupt to resolve 277 * @index: index of the interrupt to resolve
278 * @out_irq: structure of_irq filled by this function 278 * @out_irq: structure of_irq filled by this function
279 * 279 *
280 * This function resolves an interrupt, walking the tree, for a given 280 * This function resolves an interrupt, walking the tree, for a given
281 * device-tree node. It's the high level pendant to of_irq_map_raw(). 281 * device-tree node. It's the high level pendant to of_irq_parse_raw().
282 */ 282 */
283int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq) 283int of_irq_parse_one(struct device_node *device, int index, struct of_irq *out_irq)
284{ 284{
285 struct device_node *p; 285 struct device_node *p;
286 const __be32 *intspec, *tmp, *addr; 286 const __be32 *intspec, *tmp, *addr;
287 u32 intsize, intlen; 287 u32 intsize, intlen;
288 int res = -EINVAL; 288 int res = -EINVAL;
289 289
290 pr_debug("of_irq_map_one: dev=%s, index=%d\n", device->full_name, index); 290 pr_debug("of_irq_parse_one: dev=%s, index=%d\n", device->full_name, index);
291 291
292 /* OldWorld mac stuff is "special", handle out of line */ 292 /* OldWorld mac stuff is "special", handle out of line */
293 if (of_irq_workarounds & OF_IMAP_OLDWORLD_MAC) 293 if (of_irq_workarounds & OF_IMAP_OLDWORLD_MAC)
294 return of_irq_map_oldworld(device, index, out_irq); 294 return of_irq_parse_oldworld(device, index, out_irq);
295 295
296 /* Get the interrupts property */ 296 /* Get the interrupts property */
297 intspec = of_get_property(device, "interrupts", &intlen); 297 intspec = of_get_property(device, "interrupts", &intlen);
@@ -322,13 +322,13 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
322 goto out; 322 goto out;
323 323
324 /* Get new specifier and map it */ 324 /* Get new specifier and map it */
325 res = of_irq_map_raw(p, intspec + index * intsize, intsize, 325 res = of_irq_parse_raw(p, intspec + index * intsize, intsize,
326 addr, out_irq); 326 addr, out_irq);
327 out: 327 out:
328 of_node_put(p); 328 of_node_put(p);
329 return res; 329 return res;
330} 330}
331EXPORT_SYMBOL_GPL(of_irq_map_one); 331EXPORT_SYMBOL_GPL(of_irq_parse_one);
332 332
333/** 333/**
334 * of_irq_to_resource - Decode a node's IRQ and return it as a resource 334 * of_irq_to_resource - Decode a node's IRQ and return it as a resource
diff --git a/drivers/of/of_pci_irq.c b/drivers/of/of_pci_irq.c
index 677053813211..dceec1048dab 100644
--- a/drivers/of/of_pci_irq.c
+++ b/drivers/of/of_pci_irq.c
@@ -5,7 +5,7 @@
5#include <asm/prom.h> 5#include <asm/prom.h>
6 6
7/** 7/**
8 * of_irq_map_pci - Resolve the interrupt for a PCI device 8 * of_irq_parse_pci - Resolve the interrupt for a PCI device
9 * @pdev: the device whose interrupt is to be resolved 9 * @pdev: the device whose interrupt is to be resolved
10 * @out_irq: structure of_irq filled by this function 10 * @out_irq: structure of_irq filled by this function
11 * 11 *
@@ -15,7 +15,7 @@
15 * PCI tree until an device-node is found, at which point it will finish 15 * PCI tree until an device-node is found, at which point it will finish
16 * resolving using the OF tree walking. 16 * resolving using the OF tree walking.
17 */ 17 */
18int of_irq_map_pci(const struct pci_dev *pdev, struct of_irq *out_irq) 18int of_irq_parse_pci(const struct pci_dev *pdev, struct of_irq *out_irq)
19{ 19{
20 struct device_node *dn, *ppnode; 20 struct device_node *dn, *ppnode;
21 struct pci_dev *ppdev; 21 struct pci_dev *ppdev;
@@ -30,7 +30,7 @@ int of_irq_map_pci(const struct pci_dev *pdev, struct of_irq *out_irq)
30 */ 30 */
31 dn = pci_device_to_OF_node(pdev); 31 dn = pci_device_to_OF_node(pdev);
32 if (dn) { 32 if (dn) {
33 rc = of_irq_map_one(dn, 0, out_irq); 33 rc = of_irq_parse_one(dn, 0, out_irq);
34 if (!rc) 34 if (!rc)
35 return rc; 35 return rc;
36 } 36 }
@@ -88,6 +88,6 @@ int of_irq_map_pci(const struct pci_dev *pdev, struct of_irq *out_irq)
88 lspec_be = cpu_to_be32(lspec); 88 lspec_be = cpu_to_be32(lspec);
89 laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8)); 89 laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8));
90 laddr[1] = laddr[2] = cpu_to_be32(0); 90 laddr[1] = laddr[2] = cpu_to_be32(0);
91 return of_irq_map_raw(ppnode, &lspec_be, 1, laddr, out_irq); 91 return of_irq_parse_raw(ppnode, &lspec_be, 1, laddr, out_irq);
92} 92}
93EXPORT_SYMBOL_GPL(of_irq_map_pci); 93EXPORT_SYMBOL_GPL(of_irq_parse_pci);
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 91106df1ff81..7edd60f9e2fd 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -641,7 +641,7 @@ static int __init mvebu_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
641 struct of_irq oirq; 641 struct of_irq oirq;
642 int ret; 642 int ret;
643 643
644 ret = of_irq_map_pci(dev, &oirq); 644 ret = of_irq_parse_pci(dev, &oirq);
645 if (ret) 645 if (ret)
646 return ret; 646 return ret;
647 647
diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h
index 535cecf1e02f..2bb2d622ad12 100644
--- a/include/linux/of_irq.h
+++ b/include/linux/of_irq.h
@@ -45,12 +45,12 @@ typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
45#if defined(CONFIG_PPC32) && defined(CONFIG_PPC_PMAC) 45#if defined(CONFIG_PPC32) && defined(CONFIG_PPC_PMAC)
46extern unsigned int of_irq_workarounds; 46extern unsigned int of_irq_workarounds;
47extern struct device_node *of_irq_dflt_pic; 47extern struct device_node *of_irq_dflt_pic;
48extern int of_irq_map_oldworld(struct device_node *device, int index, 48extern int of_irq_parse_oldworld(struct device_node *device, int index,
49 struct of_irq *out_irq); 49 struct of_irq *out_irq);
50#else /* CONFIG_PPC32 && CONFIG_PPC_PMAC */ 50#else /* CONFIG_PPC32 && CONFIG_PPC_PMAC */
51#define of_irq_workarounds (0) 51#define of_irq_workarounds (0)
52#define of_irq_dflt_pic (NULL) 52#define of_irq_dflt_pic (NULL)
53static inline int of_irq_map_oldworld(struct device_node *device, int index, 53static inline int of_irq_parse_oldworld(struct device_node *device, int index,
54 struct of_irq *out_irq) 54 struct of_irq *out_irq)
55{ 55{
56 return -EINVAL; 56 return -EINVAL;
@@ -58,10 +58,10 @@ static inline int of_irq_map_oldworld(struct device_node *device, int index,
58#endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */ 58#endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */
59 59
60 60
61extern int of_irq_map_raw(struct device_node *parent, const __be32 *intspec, 61extern int of_irq_parse_raw(struct device_node *parent, const __be32 *intspec,
62 u32 ointsize, const __be32 *addr, 62 u32 ointsize, const __be32 *addr,
63 struct of_irq *out_irq); 63 struct of_irq *out_irq);
64extern int of_irq_map_one(struct device_node *device, int index, 64extern int of_irq_parse_one(struct device_node *device, int index,
65 struct of_irq *out_irq); 65 struct of_irq *out_irq);
66extern unsigned int irq_create_of_mapping(struct device_node *controller, 66extern unsigned int irq_create_of_mapping(struct device_node *controller,
67 const u32 *intspec, 67 const u32 *intspec,
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h
index fd9c408631a0..839ba20808fe 100644
--- a/include/linux/of_pci.h
+++ b/include/linux/of_pci.h
@@ -6,7 +6,7 @@
6 6
7struct pci_dev; 7struct pci_dev;
8struct of_irq; 8struct of_irq;
9int of_irq_map_pci(const struct pci_dev *pdev, struct of_irq *out_irq); 9int of_irq_parse_pci(const struct pci_dev *pdev, struct of_irq *out_irq);
10 10
11struct device_node; 11struct device_node;
12struct device_node *of_pci_find_child_device(struct device_node *parent, 12struct device_node *of_pci_find_child_device(struct device_node *parent,