mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
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>
This commit is contained in:
committed by
Marek Vasut
parent
3f78a28037
commit
32d019265d
@@ -550,7 +550,7 @@ int drv_usb_kbd_init(void)
|
||||
int usb_kbd_deregister(void)
|
||||
{
|
||||
#ifdef CONFIG_SYS_STDIO_DEREGISTER
|
||||
int ret = stdio_deregister(DEVNAME);
|
||||
int ret = stdio_deregister(DEVNAME, 0);
|
||||
if (ret && ret != -ENODEV)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user