From bbdb820c82d65cd11abdc329eaa91d410690436e Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 8 Apr 2019 14:06:04 -0700 Subject: [PATCH] flash/fespi: Use COMMAND_PARSE_ADDRESS Signed-off-by: Tim Newsome Change-Id: If4d22fe1440f926271274820f96428718a127ac2 Reviewed-on: http://openocd.zylin.com/5100 Tested-by: jenkins Reviewed-by: Tomas Vanek --- src/flash/nor/fespi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/flash/nor/fespi.c b/src/flash/nor/fespi.c index 1c343a84c..5d8f810ad 100644 --- a/src/flash/nor/fespi.c +++ b/src/flash/nor/fespi.c @@ -159,9 +159,7 @@ FLASH_BANK_COMMAND_HANDLER(fespi_flash_bank_command) fespi_info->probed = 0; fespi_info->ctrl_base = 0; if (CMD_ARGC >= 7) { - int temp; - COMMAND_PARSE_NUMBER(int, CMD_ARGV[6], temp); - fespi_info->ctrl_base = (uint32_t) temp; + COMMAND_PARSE_ADDRESS(CMD_ARGV[6], fespi_info->ctrl_base); LOG_DEBUG("ASSUMING FESPI device at ctrl_base = " TARGET_ADDR_FMT, fespi_info->ctrl_base); }