X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fkinetis.c;h=3d2fa1c643292a4d5c1f45d5ab979fe8cbd29f4c;hp=7907b8c386ad2f81d8f6a3ce946046d038fde36a;hb=9c37747e58250f12c709f1de79b8197144a53177;hpb=69db898b3b71eeeaa7aa6f3593467b3a61f11e88 diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c index 7907b8c386..3d2fa1c643 100644 --- a/src/flash/nor/kinetis.c +++ b/src/flash/nor/kinetis.c @@ -1247,7 +1247,7 @@ static int kinetis_write(struct flash_bank *bank, const uint8_t *buffer, return ERROR_OK; } -static int kinetis_read_part_info(struct flash_bank *bank) +static int kinetis_probe(struct flash_bank *bank) { int result, i; uint32_t offset = 0; @@ -1669,16 +1669,6 @@ static int kinetis_read_part_info(struct flash_bank *bank) return ERROR_OK; } -static int kinetis_probe(struct flash_bank *bank) -{ - if (bank->target->state != TARGET_HALTED) { - LOG_WARNING("Cannot communicate... target not halted."); - return ERROR_TARGET_NOT_HALTED; - } - - return kinetis_read_part_info(bank); -} - static int kinetis_auto_probe(struct flash_bank *bank) { struct kinetis_flash_bank *kinfo = bank->driver_priv;