Re: [U-Boot] [PATCH v2 4/4] cmd: ide: Make the first device the default one

2017-09-05 Thread Simon Glass
On 4 September 2017 at 17:08, Bin Meng  wrote:
> 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 
>
> ---
>
> Changes in v2: None
>
>  cmd/ide.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 4/4] cmd: ide: Make the first device the default one

2017-09-04 Thread Bin Meng
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 

---

Changes in v2: None

 cmd/ide.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/ide.c b/cmd/ide.c
index e3c3242..bdb5980 100644
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -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[])
 {
-- 
2.9.2

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot