Skip to contentSkip to conversation

irqchip: irqc: Add DT support

PATCH In review Magnus Damm 2 participants 2 messages Mar 6, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip: irqc: Add DT support

From: Magnus Damm <[email protected]>

Add DT support to the IRQC External IRQ Pin driver.

---

 drivers/irqchip/irq-renesas-irqc.c |    9 +++++++++
 1 file changed, 9 insertions(+)
drivers/irqchip/irq-renesas-irqc.c +9 -0
@@ -145,6 +145,7 @@ static int irqc_irq_domain_map(struct ir
 
 static struct irq_domain_ops irqc_irq_domain_ops = {
 	.map	= irqc_irq_domain_map,
+	.xlate  = irq_domain_xlate_twocell,
 };
 
 static int irqc_probe(struct platform_device *pdev)
@@ -273,11 +274,19 @@ static int irqc_remove(struct platform_d
 	return 0;
 }
 
+static const struct of_device_id irqc_dt_ids[] = {
+	{ .compatible = "renesas,irqc", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, irqc_dt_ids);
+
 static struct platform_driver irqc_device_driver = {
 	.probe		= irqc_probe,
 	.remove		= irqc_remove,
 	.driver		= {
 		.name	= "renesas_irqc",
+		.of_match_table	= irqc_dt_ids,
+		.owner	= THIS_MODULE,
 	}
 };
 
#1 lore raw
Quoted 3 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Add DT support to the IRQC External IRQ Pin driver.

I have added this to topic/intc-external-irq with the related patches. The holding-pen for INTC.