diff options
| author | Stefano Babic <sbabic@denx.de> | 2012-11-10 08:05:54 +0100 | 
|---|---|---|
| committer | Stefano Babic <sbabic@denx.de> | 2012-11-10 08:05:54 +0100 | 
| commit | 3e4d27b06d7484040355e22eec2cbce7335d6dab (patch) | |
| tree | 9672a2bb2e4ce0edc0ab776ddf0e2ca8e39a5f62 /common/cmd_ext2.c | |
| parent | bad05afe083eec0467220de21683443292c5012e (diff) | |
| parent | 59852d03867108217fe88e3bfc3e1e9cedfe63c5 (diff) | |
| download | olio-uboot-2014.01-3e4d27b06d7484040355e22eec2cbce7335d6dab.tar.xz olio-uboot-2014.01-3e4d27b06d7484040355e22eec2cbce7335d6dab.zip | |
Merge git://git.denx.de/u-boot
Diffstat (limited to 'common/cmd_ext2.c')
| -rw-r--r-- | common/cmd_ext2.c | 16 | 
1 files changed, 5 insertions, 11 deletions
| diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index c27d9c7ed..f25e22b0a 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -37,15 +37,11 @@  /*   * Ext2fs support   */ -#include <common.h> -#include <ext_common.h> +#include <fs.h>  int do_ext2ls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  { -	if (do_ext_ls(cmdtp, flag, argc, argv)) -		return -1; - -	return 0; +	return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT);  }  /****************************************************************************** @@ -53,10 +49,7 @@ int do_ext2ls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])   */  int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  { -	if (do_ext_load(cmdtp, flag, argc, argv)) -		return -1; - -	return 0; +	return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT, 16);  }  U_BOOT_CMD( @@ -71,5 +64,6 @@ U_BOOT_CMD(  	"load binary file from a Ext2 filesystem",  	"<interface> <dev[:part]> [addr] [filename] [bytes]\n"  	"    - load binary file 'filename' from 'dev' on 'interface'\n" -	"      to address 'addr' from ext2 filesystem" +	"      to address 'addr' from ext2 filesystem.\n" +	"      All numeric parameters are assumed to be hex."  ); |