gen_devtree: Move flash nodes outside of root node.

Change-Id: Ibfa5402a0f6b4e63a0d24494e75347e56b6958f7
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/gen_devtree.pl b/gen_devtree.pl
index 2853cf4..7e9fb31 100755
--- a/gen_devtree.pl
+++ b/gen_devtree.pl
@@ -59,16 +59,16 @@
 printNode($f, 1, "chosen", getChosen());
 printNode($f, 1, "memory", getBmcMemory());
 
-printNodes($f, 1, getBMCFlashNodes());
-
-printNodes($f, 1, getOtherFlashNodes());
-
 printNode($f, 1, "leds", getLEDNode());
 
 printIncludes($f, ROOT_INCLUDES);
 
 printRootNodeEnd($f, 0);
 
+printNodes($f, 0, getBMCFlashNodes());
+
+printNodes($f, 0, getOtherFlashNodes());
+
 printNodes($f, 0, getI2CNodes());
 printNodes($f, 0, getMacNodes());
 printNodes($f, 0, getUARTNodes());
@@ -793,7 +793,7 @@
     my $addr = shift;
 
     #MRW holds the 8 bit value.  We need the 7 bit one.
-    my $addr = $addr >> 1;
+    $addr = $addr >> 1;
     $addr = sprintf("0x%X", $addr);
     $addr = lc $addr;