diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-09-20 16:54:37 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-10-06 14:50:43 +0200 |
commit | 32d019265d1f0c334f2f86407abf295d46bd2f4d (patch) | |
tree | 0d6f5d7eac5cc86c3fdb7daacb5a791cf61247bd /include/stdio_dev.h | |
parent | 3f78a28037c65b92d2717b7787902a853c2506a4 (diff) |
stdio: Add force parameter to stdio_deregister
In some cases we really want to move forward with a deregister, add a force
parameter to allow this, and replace the dev with a nulldev in this case.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/stdio_dev.h')
-rw-r--r-- | include/stdio_dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 268de8ea700..24da23fe501 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -103,8 +103,8 @@ int stdio_init(void); void stdio_print_current_devices(void); #ifdef CONFIG_SYS_STDIO_DEREGISTER -int stdio_deregister(const char *devname); -int stdio_deregister_dev(struct stdio_dev *dev); +int stdio_deregister(const char *devname, int force); +int stdio_deregister_dev(struct stdio_dev *dev, int force); #endif struct list_head* stdio_get_list(void); struct stdio_dev* stdio_get_by_name(const char* name); |