public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip: irqc: Add DT support
@ 2013-03-06  6:23 Magnus Damm
  2013-03-06  7:55 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2013-03-06  6:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-sh, benh, grant.likely, horms, Magnus Damm, tglx

From: Magnus Damm <damm@opensource.se>

Add DT support to the IRQC External IRQ Pin driver.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 drivers/irqchip/irq-renesas-irqc.c |    9 +++++++++
 1 file changed, 9 insertions(+)

--- 0001/drivers/irqchip/irq-renesas-irqc.c
+++ work/drivers/irqchip/irq-renesas-irqc.c	2013-03-06 15:01:42.000000000 +0900
@@ -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,
 	}
 };
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] irqchip: irqc: Add DT support
  2013-03-06  6:23 [PATCH] irqchip: irqc: Add DT support Magnus Damm
@ 2013-03-06  7:55 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2013-03-06  7:55 UTC (permalink / raw)
  To: Magnus Damm; +Cc: linux-kernel, linux-sh, benh, grant.likely, tglx

On Wed, Mar 06, 2013 at 03:23:39PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-06  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06  6:23 [PATCH] irqchip: irqc: Add DT support Magnus Damm
2013-03-06  7:55 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox