mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
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>
This commit is contained in:
parent
767582cd4c
commit
c090e8f236
2 changed files with 0 additions and 12 deletions
|
@ -261,17 +261,6 @@ int stdio_deregister_dev(struct stdio_dev *dev, int force)
|
||||||
return 0;
|
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)
|
int stdio_init_tables(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
||||||
|
|
|
@ -83,7 +83,6 @@ int stdio_add_devices(void);
|
||||||
int stdio_init(void);
|
int stdio_init(void);
|
||||||
|
|
||||||
void stdio_print_current_devices(void);
|
void stdio_print_current_devices(void);
|
||||||
int stdio_deregister(const char *devname, int force);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stdio_deregister_dev() - deregister the device "devname".
|
* stdio_deregister_dev() - deregister the device "devname".
|
||||||
|
|
Loading…
Add table
Reference in a new issue