diff options
author | Robert Jarzmik <robert.jarzmik@atosorigin.com> | 2011-11-24 04:01:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-05 17:59:02 +0100 |
commit | ea8314d19f6441061232549ec41ab0e21abd74ca (patch) | |
tree | 7187c9b51a458622aaa3500b890cf1509d895a70 /include/console.h | |
parent | 2504dcd33209db69ebb48ae7d1c5834cdc5c023f (diff) | |
download | barebox-ea8314d19f6441061232549ec41ab0e21abd74ca.tar.gz barebox-ea8314d19f6441061232549ec41ab0e21abd74ca.tar.xz |
console: add console unregistering
Some console are transient, like the USB connected serial
console which should be removed when the USB connection is
severed.
Enable console removal for such devices.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 3bcc5dbbc0..c0817f6371 100644 --- a/include/console.h +++ b/include/console.h @@ -49,6 +49,7 @@ struct console_device { }; int console_register(struct console_device *cdev); +int console_unregister(struct console_device *cdev); extern struct list_head console_list; #define for_each_console(console) list_for_each_entry(console, &console_list, list) |