X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fkinetis_ke.c;h=8103b6394cbcb6fbd8f39196a8aaf0b37fe15518;hb=76ee93a81db72d16cc2e446f6f43411de5d6e8c2;hp=4ccbe76ce44a1e03a5beb5b7516008cc9d612d80;hpb=5396ec5dcc64354c8101f8d3f16d498ca3b10326;p=openocd.git diff --git a/src/flash/nor/kinetis_ke.c b/src/flash/nor/kinetis_ke.c index 4ccbe76ce4..8103b6394c 100644 --- a/src/flash/nor/kinetis_ke.c +++ b/src/flash/nor/kinetis_ke.c @@ -28,6 +28,9 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -475,14 +478,13 @@ int kinetis_ke_stop_watchdog(struct target *target) watchdog_algorithm->address, 0, 100000, &armv7m_info); if (retval != ERROR_OK) { LOG_ERROR("Error executing Kinetis KE watchdog algorithm"); - retval = ERROR_FAIL; } else { LOG_INFO("Watchdog stopped"); } target_free_working_area(target, watchdog_algorithm); - return ERROR_OK; + return retval; } COMMAND_HANDLER(kinetis_ke_disable_wdog_handler) @@ -1241,7 +1243,7 @@ static int kinetis_ke_blank_check(struct flash_bank *bank) return ERROR_OK; } -static const struct command_registration kinetis_ke_securtiy_command_handlers[] = { +static const struct command_registration kinetis_ke_security_command_handlers[] = { { .name = "check_security", .mode = COMMAND_EXEC, @@ -1272,7 +1274,7 @@ static const struct command_registration kinetis_ke_exec_command_handlers[] = { .mode = COMMAND_ANY, .help = "", .usage = "", - .chain = kinetis_ke_securtiy_command_handlers, + .chain = kinetis_ke_security_command_handlers, }, { .name = "disable_wdog", @@ -1308,4 +1310,5 @@ struct flash_driver kinetis_ke_flash = { .erase_check = kinetis_ke_blank_check, .protect_check = kinetis_ke_protect_check, .info = kinetis_ke_info, + .free_driver_priv = default_flash_free_driver_priv, };