summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-05-24 12:32:58 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-05-26 11:10:17 +0100
commit215353ef67434e41b13f8948dc7dceefc110e3fe (patch)
treec0e898f5dc87f301c6ad52e0cb13555a8848722b /src
parentee4106ee995a1fc81778f4ebd496d6782e592b63 (diff)
downloadopenocd_libswd-215353ef67434e41b13f8948dc7dceefc110e3fe.tar.gz
openocd_libswd-215353ef67434e41b13f8948dc7dceefc110e3fe.tar.bz2
openocd_libswd-215353ef67434e41b13f8948dc7dceefc110e3fe.tar.xz
openocd_libswd-215353ef67434e41b13f8948dc7dceefc110e3fe.zip
flash: virtual driver update for get_flash_bank_by_name_noprobe
Make sure we do not probe a flash when getting info. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/virtual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/virtual.c b/src/flash/nor/virtual.c
index 4908c0c8..eb1885eb 100644
--- a/src/flash/nor/virtual.c
+++ b/src/flash/nor/virtual.c
@@ -27,7 +27,7 @@ static struct flash_bank* virtual_get_master_bank(struct flash_bank *bank)
{
struct flash_bank* master_bank;
- master_bank = get_flash_bank_by_name(bank->driver_priv);
+ master_bank = get_flash_bank_by_name_noprobe(bank->driver_priv);
if (master_bank == NULL) {
LOG_ERROR("master flash bank '%s' does not exist", (char*)bank->driver_priv);
}
@@ -61,7 +61,7 @@ FLASH_BANK_COMMAND_HANDLER(virtual_flash_bank_command)
/* get the master flash bank */
const char *bank_name = CMD_ARGV[6];
- struct flash_bank *master_bank = get_flash_bank_by_name(bank_name);
+ struct flash_bank *master_bank = get_flash_bank_by_name_noprobe(bank_name);
if (master_bank == NULL)
{