[PATCH 2/4] Add i8259 host name.
Zhang Wei
wei.zhang at freescale.com
Fri Mar 16 15:38:33 EST 2007
This patch adds i8259 irq controller host name by the i8259 of_node's full name.
Signed-off-by: Zhang Wei <wei.zhang at freescale.com>
---
arch/powerpc/sysdev/i8259.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/sysdev/i8259.c b/arch/powerpc/sysdev/i8259.c
index ad87adc..e80c127 100644
--- a/arch/powerpc/sysdev/i8259.c
+++ b/arch/powerpc/sysdev/i8259.c
@@ -278,7 +278,8 @@ void i8259_init(struct device_node *node
/* create a legacy host */
if (node)
i8259_node = of_node_get(node);
- i8259_host = irq_alloc_host(IRQ_HOST_MAP_LEGACY, 0, &i8259_host_ops, 0);
+ i8259_host = irq_alloc_host(IRQ_HOST_MAP_LEGACY, 0, &i8259_host_ops, 0,
+ (node) ? i8259_node->full_name : NULL);
if (i8259_host == NULL) {
printk(KERN_ERR "i8259: failed to allocate irq host !\n");
return;
--
1.4.0
More information about the Linuxppc-dev
mailing list