diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-11 10:49:43 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-11 10:49:43 +0100 |
commit | d69ea86d795aea0ad833f271f0690e5e02b8bbb6 (patch) | |
tree | b7ce0a49e0bda76e3267db28c5f33cf1478aabe2 /common | |
parent | 09c1f8244d4106cdb4d970a0a89928307230d8fb (diff) | |
parent | 1a0cebc5722675b72080958a90f163767876da92 (diff) | |
download | barebox-d69ea86d795aea0ad833f271f0690e5e02b8bbb6.tar.gz barebox-d69ea86d795aea0ad833f271f0690e5e02b8bbb6.tar.xz |
Merge branch 'for-next/doc'
Diffstat (limited to 'common')
-rw-r--r-- | common/ratp.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/common/ratp.c b/common/ratp.c index edd20dcf7c..e879e2b3c1 100644 --- a/common/ratp.c +++ b/common/ratp.c @@ -398,20 +398,6 @@ out: 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, -BAREBOX_CMD_END - 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 @@ static void barebox_ratp_close(void) 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); |