nor: add get_flash_bank_by_name autoprobe
When a flash cmd is called using the flash name the autoprobe function is not called. autoprobe is called if flash_command_get_bank falls through to get_flash_bank_by_num. This makes both get_flash_bank_by_name and get_flash_bank_by_num behave the same. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
@@ -796,7 +796,7 @@ COMMAND_HANDLER(handle_flash_bank_command)
|
||||
}
|
||||
|
||||
/* check the flash bank name is unique */
|
||||
if (get_flash_bank_by_name(bank_name) != NULL)
|
||||
if (get_flash_bank_by_name_noprobe(bank_name) != NULL)
|
||||
{
|
||||
/* flash bank name already exists */
|
||||
LOG_ERROR("flash bank name '%s' already exists", bank_name);
|
||||
|
||||
Reference in New Issue
Block a user