]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/usb_kbd.c
dm: usb: Split hub detection into its own function
[karo-tx-uboot.git] / common / usb_kbd.c
index 0d477439076cbf4d60c6a89a4d25ab5f2a78207b..ecc3085cc0811b5471cab07415904221153abf33 100644 (file)
@@ -544,6 +544,10 @@ int usb_kbd_deregister(int force)
                data = usb_kbd_dev->privptr;
                if (stdio_deregister_dev(dev, force) != 0)
                        return 1;
+#ifdef CONFIG_CONSOLE_MUX
+               if (iomux_doenv(stdin, getenv("stdin")) != 0)
+                       return 1;
+#endif
 #ifdef CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
                destroy_int_queue(usb_kbd_dev, data->intq);
 #endif