Thread (5 messages) flat view 5 messages, 4 authors, 2008-01-24

Re: [PATCH 3/4 v4] POWERPC: Add initial iomega StorCenter board port.

From: Kumar Gala <hidden>
Date: 2008-01-24 01:54:46

On Jan 23, 2008, at 6:50 PM, Stephen Rothwell wrote:
Hi Jon,

On Wed, 23 Jan 2008 12:42:50 -0600 Jon Loeliger [off-list ref] wrote:
quoted
+++ b/arch/powerpc/platforms/embedded6xx/storcenter.c
+static void __init storcenter_init_IRQ(void)
+{
+	struct mpic *mpic;
+	struct device_node *dnp;
+	const void *prop;
+	int size;
+	phys_addr_t paddr;
+
+	dnp = of_find_node_by_type(NULL, "open-pic");
+	if (dnp == NULL)
+		return;
+
+	prop = of_get_property(dnp, "reg", &size);
+	if (prop == NULL)
+		return;
You need an of_node_put(dnp) before you return.
Fixed up by your friendly maintainer.

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