summaryrefslogtreecommitdiff
path: root/src/flash/nor/tcl.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-05-24 12:30:29 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-05-26 11:10:16 +0100
commitee4106ee995a1fc81778f4ebd496d6782e592b63 (patch)
tree392ed5401d47dc2261016ddf8eb3154e745a9d5f /src/flash/nor/tcl.c
parent94dc7c0a939c042c71767b5cbdc1e1327ccecbea (diff)
downloadopenocd+libswd-ee4106ee995a1fc81778f4ebd496d6782e592b63.tar.gz
openocd+libswd-ee4106ee995a1fc81778f4ebd496d6782e592b63.tar.bz2
openocd+libswd-ee4106ee995a1fc81778f4ebd496d6782e592b63.tar.xz
openocd+libswd-ee4106ee995a1fc81778f4ebd496d6782e592b63.zip
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>
Diffstat (limited to 'src/flash/nor/tcl.c')
-rw-r--r--src/flash/nor/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 80d9a27c..b3dbd7b8 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -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);