aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/irq.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-06-08 09:48:12 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 18:14:27 -0400
commitd3571c3acfabb6f3a93b517b75d9b30eb7e8692e (patch)
tree5ab59980b9a07cda8e5e0937b0ea8581a09bc92e /drivers/of/irq.c
parent3930f294d081c9e2a65f137a7d5fb6c161e4aa94 (diff)
of: Use full node name in resource structures
Resource names appear in human readable output, so when extracting IRQ and address resources from a device tree node, use the full node name to give proper context in places like /proc/iomem. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> CC: Michal Simek <monstr@monstr.eu> CC: Stephen Rothwell <sfr@canb.auug.org.au> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: microblaze-uclinux@itee.uq.edu.au CC: linuxppc-dev@ozlabs.org
Diffstat (limited to 'drivers/of/irq.c')
-rw-r--r--drivers/of/irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index 623eb661c629..6cfb307204c3 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -340,6 +340,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
340 if (r && irq != NO_IRQ) { 340 if (r && irq != NO_IRQ) {
341 r->start = r->end = irq; 341 r->start = r->end = irq;
342 r->flags = IORESOURCE_IRQ; 342 r->flags = IORESOURCE_IRQ;
343 r->name = dev->full_name;
343 } 344 }
344 345
345 return irq; 346 return irq;