OSDN Git Service

microblaze: Set the default irq_domain
authorDan Christensen <opello@opello.org>
Sun, 17 Mar 2013 09:48:56 +0000 (04:48 -0500)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 9 May 2013 07:01:21 +0000 (09:01 +0200)
Register the irq_domain created during initialization as the default so
that device drivers can pass NULL to irq_create_mapping and get a
virtual irq to pass to request_irq.

Signed-off-by: Dan Christensen <opello@opello.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/intc.c

index 8778adf..d85fa3a 100644 (file)
@@ -172,4 +172,6 @@ void __init init_IRQ(void)
         * and commits this patch.  ~~gcl */
        root_domain = irq_domain_add_linear(intc, nr_irq, &xintc_irq_domain_ops,
                                                        (void *)intr_mask);
+
+       irq_set_default_host(root_domain);
 }