[PATCH 4/5] ratp: remove unused ratp_close command

Robert Schwebel r.schwebel at pengutronix.de
Tue Feb 9 08:01:23 PST 2016


This is a leftover from development, remove.

Signed-off-by: Robert Schwebel <r.schwebel at pengutronix.de>
---
 common/ratp.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

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 @@ 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);
-- 
2.7.0.rc3




More information about the barebox mailing list