summaryrefslogtreecommitdiff
path: root/net/rarp.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-27 06:24:32 +0000
committerWolfgang Denk <wd@denx.de>2011-10-27 23:53:58 +0200
commite4a3d57dc79e8c94e3272c4a82b146df0fe3dda6 (patch)
tree1f56c6b874ec39a786bdd878fb752cf3996015a2 /net/rarp.c
parented1ada712aa206bfa51caf56f27659baa05623bf (diff)
downloadu-boot-imx-e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6.zip
u-boot-imx-e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6.tar.gz
u-boot-imx-e4a3d57dc79e8c94e3272c4a82b146df0fe3dda6.tar.bz2
net: Export auto_load, use it in rarp
The rarp code includes another instance of the auto_load logic, so call what is now net_auto_load() instead. This also fixes an incorrect call to TftpStart() which was never seen since apparently no boards enable rarp. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'net/rarp.c')
-rw-r--r--net/rarp.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/net/rarp.c b/net/rarp.c
index 94c86d3..097f970 100644
--- a/net/rarp.c
+++ b/net/rarp.c
@@ -46,24 +46,8 @@ static void
RarpHandler(uchar *dummi0, unsigned dummi1, IPaddr_t sip, unsigned dummi2,
unsigned dummi3)
{
- char *s;
debug("Got good RARP\n");
- if ((s = getenv("autoload")) != NULL) {
- if (*s == 'n') {
- /*
- * Just use RARP to configure system;
- * Do not use TFTP/NFS to to load the bootfile.
- */
- NetState = NETLOOP_SUCCESS;
- return;
-#if defined(CONFIG_CMD_NFS)
- } else if ((s != NULL) && !strcmp(s, "NFS")) {
- NfsStart();
- return;
-#endif
- }
- }
- TftpStart ();
+ net_auto_load();
}