Patchwork powerpc/cpm2: make cpm2_pic the default host

login
register
mail settings
Submitter Wolfram Sang
Date May 29, 2009, 8:31 a.m.
Message ID <1243585893-29401-1-git-send-email-w.sang@pengutronix.de>
Download mbox | patch
Permalink /patch/27825/
State Rejected, archived
Headers show

Comments

Wolfram Sang - May 29, 2009, 8:31 a.m.
As stated in the source, this one is usually the only
interrupt-controller. To ease creating virq mappings, let it be the
default host.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Daniel Ng <daniel.ng1234@gmail.com>
Cc: Vitaly Bordug <vitb@kernel.crashing.org>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
---
 arch/powerpc/sysdev/cpm2_pic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/powerpc/sysdev/cpm2_pic.c b/arch/powerpc/sysdev/cpm2_pic.c
index 78f1f7c..7a7d4e5 100644
--- a/arch/powerpc/sysdev/cpm2_pic.c
+++ b/arch/powerpc/sysdev/cpm2_pic.c
@@ -272,4 +272,5 @@  void cpm2_pic_init(struct device_node *node)
 		printk(KERN_ERR "CPM2 PIC: failed to allocate irq host!\n");
 		return;
 	}
+	irq_set_default_host(cpm2_pic_host);
 }