[PATCH v2 1/1] usb_kbd: remove match string

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Jan 2 15:47:15 CET 2026


U-Boot has added a compatible match string "usb-keyboard" to bind the
USB keyboard driver. But this compatible string is neither used in U-Boot
nor defined in Linux.

USB keyboards are identified via a USB interface descriptor or via USB
vendor and product IDs both in U-Boot and in Linux.

Remove the superfluous match string.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
v2:
	expand the commit message
---
 common/usb_kbd.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 36107a3b278..29b01a85955 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -690,15 +690,9 @@ err:
 	return ret;
 }
 
-static const struct udevice_id usb_kbd_ids[] = {
-	{ .compatible = "usb-keyboard" },
-	{ }
-};
-
 U_BOOT_DRIVER(usb_kbd) = {
 	.name	= "usb_kbd",
 	.id	= UCLASS_KEYBOARD,
-	.of_match = usb_kbd_ids,
 	.probe = usb_kbd_probe,
 	.remove = usb_kbd_remove,
 };
-- 
2.51.0



More information about the U-Boot mailing list