diff options
author | Magnus Damm <damm@opensource.se> | 2013-03-06 01:23:39 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-18 08:26:07 -0400 |
commit | 3b8dfa7c2f8af7613dae28ac0f3419bf75ead5d0 (patch) | |
tree | c2b07be52d992f1b253117d283e02bb297570173 | |
parent | 9d833bbe49953a9a07f9ebd7a9ad170c308bd692 (diff) |
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>
-rw-r--r-- | drivers/irqchip/irq-renesas-irqc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-renesas-irqc.c b/drivers/irqchip/irq-renesas-irqc.c index 95d69bfac982..927bff373aac 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, | |||
145 | 145 | ||
146 | static struct irq_domain_ops irqc_irq_domain_ops = { | 146 | static struct irq_domain_ops irqc_irq_domain_ops = { |
147 | .map = irqc_irq_domain_map, | 147 | .map = irqc_irq_domain_map, |
148 | .xlate = irq_domain_xlate_twocell, | ||
148 | }; | 149 | }; |
149 | 150 | ||
150 | static int irqc_probe(struct platform_device *pdev) | 151 | static int irqc_probe(struct platform_device *pdev) |
@@ -273,11 +274,19 @@ static int irqc_remove(struct platform_device *pdev) | |||
273 | return 0; | 274 | return 0; |
274 | } | 275 | } |
275 | 276 | ||
277 | static const struct of_device_id irqc_dt_ids[] = { | ||
278 | { .compatible = "renesas,irqc", }, | ||
279 | {}, | ||
280 | }; | ||
281 | MODULE_DEVICE_TABLE(of, irqc_dt_ids); | ||
282 | |||
276 | static struct platform_driver irqc_device_driver = { | 283 | static struct platform_driver irqc_device_driver = { |
277 | .probe = irqc_probe, | 284 | .probe = irqc_probe, |
278 | .remove = irqc_remove, | 285 | .remove = irqc_remove, |
279 | .driver = { | 286 | .driver = { |
280 | .name = "renesas_irqc", | 287 | .name = "renesas_irqc", |
288 | .of_match_table = irqc_dt_ids, | ||
289 | .owner = THIS_MODULE, | ||
281 | } | 290 | } |
282 | }; | 291 | }; |
283 | 292 | ||