summaryrefslogtreecommitdiff
path: root/common/usb_kbd.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-09-20 16:54:37 +0200
committerMarek Vasut <marex@denx.de>2014-10-06 14:50:43 +0200
commit32d019265d1f0c334f2f86407abf295d46bd2f4d (patch)
tree0d6f5d7eac5cc86c3fdb7daacb5a791cf61247bd /common/usb_kbd.c
parent3f78a28037c65b92d2717b7787902a853c2506a4 (diff)
downloadu-boot-imx-32d019265d1f0c334f2f86407abf295d46bd2f4d.zip
u-boot-imx-32d019265d1f0c334f2f86407abf295d46bd2f4d.tar.gz
u-boot-imx-32d019265d1f0c334f2f86407abf295d46bd2f4d.tar.bz2
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 'common/usb_kbd.c')
-rw-r--r--common/usb_kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index d4d5f48..dcb693d 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -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;