]> git.dujemihanovic.xyz Git - u-boot.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)
commit584f316f115df52fd09a6cf699b29dcf824b4da5
treeaa6b1a8c5a7cc2a6028d27da4f7120c9ceac44d2
parent1f4adab8733b29f81d21f74e2194bd8ddb80e574
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