]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: ide: Make the first device the default one
authorBin Meng <bmeng.cn@gmail.com>
Sun, 10 Sep 2017 12:12:53 +0000 (05:12 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 10 Sep 2017 16:27:43 +0000 (12:27 -0400)
commit7c40e7d652fb0bf4656faa03959f2f648747406c
treeaa6b1a8c5a7cc2a6028d27da4f7120c9ceac44d2
parent91c1ff7527729cf14cee2688c4a943316e5bdcae
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>
cmd/ide.c