summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2016-02-09 17:01:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-10 08:18:22 +0100
commit3869d56a770a952f683b12b61bf8b2eb6d5a3efa (patch)
tree1f942af509172acacbe624e0b4ba8bf1636751bc /common
parent5e690f4510d9455ed86090f426ac290a9a4fb9d6 (diff)
downloadbarebox-3869d56a770a952f683b12b61bf8b2eb6d5a3efa.tar.gz
barebox-3869d56a770a952f683b12b61bf8b2eb6d5a3efa.tar.xz
ratp: remove unused ratp_close command
This is a leftover from development, remove. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/ratp.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/common/ratp.c b/common/ratp.c
index 2fef3cc0fe..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,
-};
-
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);