aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-renesas-irqc.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-03-06 15:23:39 +0900
committerSimon Horman <horms+renesas@verge.net.au>2013-03-18 21:26:07 +0900
commit3b8dfa7c2f8af7613dae28ac0f3419bf75ead5d0 (patch)
treec2b07be52d992f1b253117d283e02bb297570173 /drivers/irqchip/irq-renesas-irqc.c
parent9d833bbe49953a9a07f9ebd7a9ad170c308bd692 (diff)
downloadkernel_goldelico_gta04-3b8dfa7c2f8af7613dae28ac0f3419bf75ead5d0.zip
kernel_goldelico_gta04-3b8dfa7c2f8af7613dae28ac0f3419bf75ead5d0.tar.gz
kernel_goldelico_gta04-3b8dfa7c2f8af7613dae28ac0f3419bf75ead5d0.tar.bz2
irqchip: irqc: Add DT support
Add DT support to the IRQC External IRQ Pin driver. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/irqchip/irq-renesas-irqc.c')
-rw-r--r--drivers/irqchip/irq-renesas-irqc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c
index 95d69bf..927bff3 100644
--- a/drivers/irqchip/irq-renesas-irqc.c
+++ b/drivers/irqchip/irq-renesas-irqc.c
@@ -145,6 +145,7 @@ static int irqc_irq_domain_map(struct irq_domain *h, unsigned int virq,
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_device *pdev)
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,
}
};