diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-09-10 15:12:53 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-10 19:27:43 +0300 |
commit | 584f316f115df52fd09a6cf699b29dcf824b4da5 (patch) | |
tree | aa6b1a8c5a7cc2a6028d27da4f7120c9ceac44d2 /cmd | |
parent | 1f4adab8733b29f81d21f74e2194bd8ddb80e574 (diff) | |
download | u-boot-584f316f115df52fd09a6cf699b29dcf824b4da5.tar.xz |
cmd: ide: Make the first device the default one
At present the IDE device number is initialized to -1, which means
we cannot type "ide read" command before setting the device number
via "ide device #".
For convenience, let's set the first device as the default one.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ #endif /* Current I/O Device */ -static int curr_device = -1; +static int curr_device; int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { |