[PATCH] stdio: Remove stdio_init()

Masahiro Yamada masahiroy at kernel.org
Tue Jun 6 13:37:42 CEST 2023


This function is not used by anyone.

Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
---

 common/stdio.c      | 8 --------
 include/stdio_dev.h | 7 -------
 2 files changed, 15 deletions(-)

diff --git a/common/stdio.c b/common/stdio.c
index cbedfdda53..894cbd3fb4 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -386,11 +386,3 @@ int stdio_add_devices(void)
 
 	return 0;
 }
-
-int stdio_init(void)
-{
-	stdio_init_tables();
-	stdio_add_devices();
-
-	return 0;
-}
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index 3105928970..77bf8a8970 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -84,13 +84,6 @@ int stdio_init_tables(void);
  */
 int stdio_add_devices(void);
 
-/**
- * stdio_init() - Sets up stdio ready for use
- *
- * This calls stdio_init_tables() and stdio_add_devices()
- */
-int stdio_init(void);
-
 void stdio_print_current_devices(void);
 
 /**
-- 
2.39.2



More information about the U-Boot mailing list