summaryrefslogtreecommitdiff
path: root/common/usb_kbd.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-05-10 19:48:58 -0700
committerMarek Vasut <marex@denx.de>2013-06-12 22:22:50 +0200
commit09defbc75b46991b794f35957e986acbfe0c7946 (patch)
treebc077c133035f46c4bff8119c0b9375f040bc97b /common/usb_kbd.c
parente1208c2fe5e07f9a248cfbf9bbb212aa34ad2806 (diff)
downloadu-boot-imx-09defbc75b46991b794f35957e986acbfe0c7946.zip
u-boot-imx-09defbc75b46991b794f35957e986acbfe0c7946.tar.gz
u-boot-imx-09defbc75b46991b794f35957e986acbfe0c7946.tar.bz2
usb: properly re-initialize the USB keyboard.
Allow to reconfigure properly the USB keyboard driver when we enumerate several times the USB devices and its position in the device tree has changes. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/usb_kbd.c')
-rw-r--r--common/usb_kbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index b962849..188763d 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -496,6 +496,7 @@ int drv_usb_kbd_init(void)
if (old_dev) {
/* Already registered, just return ok. */
debug("USB KBD: is already registered.\n");
+ usb_kbd_deregister();
return 1;
}