transport: fix bug/typo in transport_register cmd
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>__archive__
parent
daa02f7d84
commit
ac5ad4ad8d
|
@ -1366,7 +1366,6 @@ int adapter_init(struct command_context *cmd_ctx)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int requested_khz = jtag_get_speed_khz();
|
int requested_khz = jtag_get_speed_khz();
|
||||||
int actual_khz = requested_khz;
|
int actual_khz = requested_khz;
|
||||||
int retval = jtag_get_speed_readable(&actual_khz);
|
int retval = jtag_get_speed_readable(&actual_khz);
|
||||||
|
@ -1734,7 +1733,6 @@ static int jtag_select(struct command_context *ctx)
|
||||||
* That works with only C code ... no Tcl glue required.
|
* That works with only C code ... no Tcl glue required.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
retval = jtag_register_commands(ctx);
|
retval = jtag_register_commands(ctx);
|
||||||
|
|
||||||
if (retval != ERROR_OK)
|
if (retval != ERROR_OK)
|
||||||
|
|
|
@ -3207,7 +3207,7 @@ COMMAND_HANDLER(ft2232_handle_layout_command)
|
||||||
if (strcmp(l->name, CMD_ARGV[0]) == 0) {
|
if (strcmp(l->name, CMD_ARGV[0]) == 0) {
|
||||||
layout = l;
|
layout = l;
|
||||||
/* This may also select the transport
|
/* This may also select the transport
|
||||||
* if we only suppport one of them.
|
* if we only support one of them.
|
||||||
*/
|
*/
|
||||||
return allow_transports(CMD_CTX,
|
return allow_transports(CMD_CTX,
|
||||||
l->transports ? : jtag_only);
|
l->transports ? : jtag_only);
|
||||||
|
|
|
@ -166,7 +166,7 @@ int transport_register(struct transport *new_transport)
|
||||||
/* splice this into the list */
|
/* splice this into the list */
|
||||||
new_transport->next = transport_list;
|
new_transport->next = transport_list;
|
||||||
transport_list = new_transport;
|
transport_list = new_transport;
|
||||||
LOG_DEBUG("register '%s'", t->name);
|
LOG_DEBUG("register '%s'", new_transport->name);
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue