aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/82xx/pq2fads.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/82xx/pq2fads.c')
-rw-r--r--arch/powerpc/platforms/82xx/pq2fads.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2fads.c b/arch/powerpc/platforms/82xx/pq2fads.c
index 68196e34999..e1dceeec499 100644
--- a/arch/powerpc/platforms/82xx/pq2fads.c
+++ b/arch/powerpc/platforms/82xx/pq2fads.c
@@ -130,13 +130,12 @@ static void __init pq2fads_setup_arch(void)
}
bcsr = of_iomap(np, 0);
+ of_node_put(np);
if (!bcsr) {
printk(KERN_ERR "Cannot map BCSR registers\n");
return;
}
- of_node_put(np);
-
/* Enable the serial and ethernet ports */
clrbits32(&bcsr[1], BCSR1_RS232_EN1 | BCSR1_RS232_EN2 | BCSR1_FETHIEN);