diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-08 23:48:03 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:27:52 -0700 |
commit | 17627609e0b5d2222233c852d316276d67695c6e (patch) | |
tree | 9076843ae876056ac463f736b6d4adc1f44561b8 | |
parent | cd716372b356c09c6391f346ac18c30c82363818 (diff) | |
download | u-boot-17627609e0b5d2222233c852d316276d67695c6e.zip u-boot-17627609e0b5d2222233c852d316276d67695c6e.tar.gz u-boot-17627609e0b5d2222233c852d316276d67695c6e.tar.bz2 |
usb: Drop unused code in usb_kbd.c
This was missed in the conversion to driver model.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/usb_kbd.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 5a90f84..1d85212 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -541,35 +541,6 @@ int drv_usb_kbd_init(void) int error, i; debug("%s: Probing for keyboard\n", __func__); -#ifdef CONFIG_DM_USB - /* - * TODO: We should add U_BOOT_USB_DEVICE() declarations to each USB - * keyboard driver and then most of this file can be removed. - */ - struct udevice *bus; - struct uclass *uc; - int ret; - - ret = uclass_get(UCLASS_USB, &uc); - if (ret) - return ret; - uclass_foreach_dev(bus, uc) { - for (i = 0; i < USB_MAX_DEVICE; i++) { - struct usb_device *dev; - - dev = usb_get_dev_index(bus, i); /* get device */ - debug("i=%d, %p\n", i, dev); - if (!dev) - break; /* no more devices available */ - - error = probe_usb_keyboard(dev); - if (!error) - return 1; - if (error && error != -ENOENT) - return error; - } /* for */ - } -#else /* Scan all USB Devices */ for (i = 0; i < USB_MAX_DEVICE; i++) { struct usb_device *dev; @@ -588,7 +559,6 @@ int drv_usb_kbd_init(void) if (error && error != -ENOENT) return error; } -#endif /* No USB Keyboard found */ return -1; |