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: Stephen Rothwell <hidden>
Date: 2008-01-24 00:50:33

Hi Jon,

On Wed, 23 Jan 2008 12:42:50 -0600 Jon Loeliger [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+++ 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.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

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