Allow whitspace to appear between device name and unit number in loaderdev.
This allows the same value to be used in u-boot commands and the loaderdev env var that gets passed to ubldr, for example 'fatload mmc 1 ${bootfile}".
This commit is contained in:
parent
27ad9746c0
commit
18f4019f87
@ -212,10 +212,11 @@ get_load_device(int *type, int *unit, int *slice, int *partition)
|
||||
|
||||
p = get_device_type(devstr, type);
|
||||
|
||||
/*
|
||||
* Empty device string, or unknown device name, or a bare, known
|
||||
* device name.
|
||||
*/
|
||||
/* Ignore optional spaces after the device name. */
|
||||
while (*p == ' ')
|
||||
p++;
|
||||
|
||||
/* Unknown device name, or a known name without unit number. */
|
||||
if ((*type == -1) || (*p == '\0')) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user