remove flash.h from tree
[fw/openocd] / src / target / target.c
index 4013442612dd8489074a89911ef7ee27a59671ca..597046faa97b4cfc2fb8db9aaf543642924184d0 100644 (file)
 #include "target_type.h"
 #include "target_request.h"
 #include "breakpoints.h"
-#include "time_support.h"
+#include <helper/time_support.h>
 #include "register.h"
 #include "trace.h"
 #include "image.h"
-#include "jtag.h"
+#include <jtag/jtag.h>
 
 
 static int target_array2mem(Jim_Interp *interp, struct target *target, int argc, Jim_Obj *const *argv);
@@ -4590,6 +4590,12 @@ static int jim_target_count(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 }
 
 static const struct command_registration target_subcommand_handlers[] = {
+       {
+               .name = "init",
+               .mode = COMMAND_CONFIG,
+               .handler = &handle_target_init_command,
+               .help = "initialize targets",
+       },
        {
                .name = "create",
                .mode = COMMAND_ANY,
@@ -4803,12 +4809,6 @@ COMMAND_HANDLER(handle_fast_load_command)
 }
 
 static const struct command_registration target_command_handlers[] = {
-       {
-               .name = "init",
-               .mode = COMMAND_CONFIG,
-               .handler = &handle_target_init_command,
-               .help = "initialize targets",
-       },
        {
                .name = "targets",
                .handler = &handle_targets_command,