summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-02-11 17:09:34 +0200
committerTom Rini <trini@konsulko.com>2021-02-16 11:16:07 -0500
commitc090e8f2367f1c532bf30935104eccdada9d013d (patch)
treef114c5a9995589c679583aebf65ebdfd9892f9f5 /common
parent767582cd4c755c52bce3e1813bc462f37047cb5c (diff)
downloadu-boot-c090e8f2367f1c532bf30935104eccdada9d013d.tar.gz
u-boot-c090e8f2367f1c532bf30935104eccdada9d013d.tar.xz
u-boot-c090e8f2367f1c532bf30935104eccdada9d013d.zip
stdio: Get rid of dead code, i.e. stdio_deregister()
Nobody is using stdio_deregister(), remove for good. Note, even its parameters are not consistent with stdio_register(). So, if anyone want to introduce this again, better with some consistency. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'common')
-rw-r--r--common/stdio.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/common/stdio.c b/common/stdio.c
index 2b883fddbe..acc65ada1b 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -261,17 +261,6 @@ int stdio_deregister_dev(struct stdio_dev *dev, int force)
return 0;
}
-int stdio_deregister(const char *devname, int force)
-{
- struct stdio_dev *dev;
-
- dev = stdio_get_by_name(devname);
- if (!dev) /* device not found */
- return -ENODEV;
-
- return stdio_deregister_dev(dev, force);
-}
-
int stdio_init_tables(void)
{
#if defined(CONFIG_NEEDS_MANUAL_RELOC)