eth: Moved eth_initialize to end of autoboot

If autoboot command fails, it returns to prompt
without ethernet initialized. Hence, moved it to
the end of autoboot to make sure ethrernet is
initialized before entering the prompt.

Change-Id: I79ea6f51842c544e9eb3b97bf7658c45feb34f0b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
diff --git a/common/autoboot.c b/common/autoboot.c
index 49bc024..21acfcf 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -271,12 +271,6 @@
 	if (abort)
 		gd->flags &= ~GD_FLG_SILENT;
 #endif
-#ifdef CONFIG_IPQ_ETH_INIT_DEFER
-	if (abort) {
-		puts("\nNet:   ");
-		eth_initialize();
-	}
-#endif
 	return abort;
 }
 # endif	/* CONFIG_AUTOBOOT_KEYED */
@@ -382,4 +376,9 @@
 			run_command_list(s, -1, 0);
 	}
 #endif /* CONFIG_MENUKEY */
+
+#ifdef CONFIG_IPQ_ETH_INIT_DEFER
+	puts("\nNet:   ");
+	eth_initialize();
+#endif
 }