Skip to content
Snippets Groups Projects
Commit 584f316f authored by Bin Meng's avatar Bin Meng Committed by Tom Rini
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 1f4adab8
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#endif #endif
/* Current I/O Device */ /* 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[]) int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment