flash: cleanup stellaris device class detection
[fw/openocd] / src / flash / nand / lpc3180.c
index 4cd4c6f390e04ceadadf4d456ac0842b993eba4b..b370e112b2acd546605ba4a3cc7cd85d30a0e9a6 100644 (file)
@@ -45,8 +45,7 @@ NAND_DEVICE_COMMAND_HANDLER(lpc3180_nand_device_command)
 {
        if (CMD_ARGC < 3)
        {
-               LOG_WARNING("incomplete 'lpc3180' nand flash configuration");
-               return ERROR_FLASH_BANK_INVALID;
+               return ERROR_COMMAND_SYNTAX_ERROR;
        }
 
        uint32_t osc_freq;
@@ -1317,7 +1316,7 @@ COMMAND_HANDLER(handle_lpc3180_select_command)
       if (lpc3180_info->selected_controller == LPC3180_MLC_CONTROLLER)
        command_print(CMD_CTX, "%s controller selected", selected[lpc3180_info->selected_controller]);
       else{
-            command_print(CMD_CTX, lpc3180_info->is_bulk?"%s controller selected bulk mode is avaliable":"%s controller selected bulk mode is not avaliable", selected[lpc3180_info->selected_controller]);
+            command_print(CMD_CTX, lpc3180_info->is_bulk?"%s controller selected bulk mode is available":"%s controller selected bulk mode is not available", selected[lpc3180_info->selected_controller]);
       }
  
 
@@ -1339,6 +1338,7 @@ static const struct command_registration lpc3180_command_handler[] = {
                .name = "lpc3180",
                .mode = COMMAND_ANY,
                .help = "LPC3180 NAND flash controller commands",
+               .usage = "",
                .chain = lpc3180_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE