Thread (24 messages) flat view 24 messages, 6 authors, 2014-10-13

Re: [PATCH v3 4/7] ARM: mediatek: Add sysirq interrupt polarity support

From: Arnd Bergmann <arnd@arndb.de>
Date: 2014-10-09 14:39:15
Also in: linux-arm-kernel, lkml

On Thursday 09 October 2014 22:29:37 Joe. C wrote:
+static int __init mtk_sysirq_of_init(struct device_node *node,
+				   struct device_node *parent)
+{
+	struct device_node *parent_node;
+	struct irq_domain *domain, *domain_parent = NULL;
+	struct mt_sysirq_chip_data *chip_data;
+	int ret = 0;
+
+	parent_node = of_irq_find_parent(node);
+	if (parent_node) {
+		domain_parent = irq_find_host(parent_node);
+		of_node_put(parent_node);
+	}
Just a small comment: I think the 'parent' argument to the function
already contains the device node you are looking up here, so
no need for the second variable or _find_parent call.

This means you can also drop the  = NULL assignment for the
domain.

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