Networking: Move where the local loopback device is initialized from board_app_intiialize() to up_intiialize() so that it will happen automatically

This commit is contained in:
Gregory Nutt
2015-08-24 14:25:49 -06:00
parent 0732914d09
commit 01cfe8c315
9 changed files with 56 additions and 14 deletions
+7
View File
@@ -44,6 +44,7 @@
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <nuttx/fs/fs.h>
#include <nuttx/net/loopback.h>
#include <nuttx/syslog/ramlog.h>
#include <nuttx/syslog/syslog_console.h>
@@ -194,6 +195,12 @@ void up_initialize(void)
up_netinitialize();
#endif
#ifdef CONFIG_NETDEV_LOOPBACK
/* Initialize the local loopback device */
(void)localhost_initialize();
#endif
/* Initialize USB -- device and/or host */
up_usbinitialize();