diff --git a/common/ratp.c b/common/ratp.c index 2fef3cc..e879e2b 100644 --- a/common/ratp.c +++ b/common/ratp.c @@ -398,20 +398,6 @@ ratp_console_unregister(ctx); } -static int do_ratp_close(int argc, char *argv[]) -{ - if (ratp_command_ctx && ratp_command_ctx->cdev) - ratp_console_unregister(ratp_command_ctx); - else - printf("ratp is not active\n"); - - return 0; -} - -BAREBOX_CMD_START(ratp_close) - .cmd = do_ratp_close, -}; - int barebox_ratp_fs_call(struct ratp_bb_pkt *tx, struct ratp_bb_pkt **rx) { struct ratp_ctx *ctx = ratp_command_ctx; @@ -508,4 +494,4 @@ if (ratp_command_ctx && ratp_command_ctx->cdev) ratp_console_unregister(ratp_command_ctx); } -predevshutdown_exitcall(barebox_ratp_close); \ No newline at end of file +predevshutdown_exitcall(barebox_ratp_close);