Thread (77 messages) flat view 77 messages, 11 authors, 2012-07-06
STALE5150d

[PATCH 07/16] dma: ipu: remove the use of ipu_platform_data

From: Dong Aisheng <hidden>
Date: 2012-06-15 09:37:14

On Thu, Jun 14, 2012 at 01:59:38PM +0800, Shawn Guo wrote:
.......
quoted hunk ↗ jump to hunk
@@ -354,10 +355,12 @@ static struct irq_chip ipu_irq_chip = {
 /* Install the IRQ handler */
 int __init ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev)
 {
-	struct ipu_platform_data *pdata = dev->dev.platform_data;
-	unsigned int irq, irq_base, i;
+	unsigned int irq, i;
+	int irq_base = irq_alloc_descs(-1, 0, CONFIG_MX3_IPU_IRQS,
+				       numa_node_id());
 
-	irq_base = pdata->irq_base;
+	if (irq_base < 0)
+		return irq_base;
 
Need not add irqdomain for this irq range?
Can we still service this irq properly without irqdomain mapping?

Regards
Dong Aisheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help