mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 08:31:28 +00:00
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>
This commit is contained in:
parent
1f4adab873
commit
584f316f11
1 changed files with 1 additions and 1 deletions
|
@ -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[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue