usb: host: xhci: Make U_BOOT_DRIVER entries unique
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:30:33 +0000 (09:30 -0600)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Wed, 12 Nov 2025 21:13:03 +0000 (22:13 +0100)
All instances of the U_BOOT_DRIVER must use a unique name or they will
lead to link time failures due to name space conflicts when both are
present. Most of the XHCI drivers follow pattern of xhci_xxx in their
name, but a few used "usb_xhci". Change these to follow the pattern of
the rest of the XHCI glue drivers.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
drivers/usb/host/xhci-brcm.c
drivers/usb/host/xhci-exynos5.c
drivers/usb/host/xhci-generic.c
drivers/usb/host/xhci-mtk.c
drivers/usb/host/xhci-mvebu.c
drivers/usb/host/xhci-rcar.c

index 2ffad14..595839f 100644 (file)
@@ -85,7 +85,7 @@ static const struct udevice_id xhci_brcm_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_brcm) = {
        .name                           = "xhci_brcm",
        .id                             = UCLASS_USB,
        .probe                          = xhci_brcm_probe,
index c509ce1..500696c 100644 (file)
@@ -246,7 +246,7 @@ static const struct udevice_id xhci_usb_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_exynos) = {
        .name   = "xhci_exynos",
        .id     = UCLASS_USB,
        .of_match = xhci_usb_ids,
index 355d488..8bb4e27 100644 (file)
@@ -61,7 +61,7 @@ static const struct udevice_id xhci_usb_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_generic) = {
        .name   = "xhci_generic",
        .id     = UCLASS_USB,
        .of_match = xhci_usb_ids,
index 7e288f0..ffe80c0 100644 (file)
@@ -357,7 +357,7 @@ static const struct udevice_id xhci_mtk_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_mtk) = {
        .name = "xhci-mtk",
        .id = UCLASS_USB,
        .of_match = xhci_mtk_ids,
index 1338b10..12dc61a 100644 (file)
@@ -87,7 +87,7 @@ static const struct udevice_id xhci_usb_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_mvebu) = {
        .name   = "xhci_mvebu",
        .id     = UCLASS_USB,
        .of_match = xhci_usb_ids,
index b728070..95dfa2c 100644 (file)
@@ -149,7 +149,7 @@ static const struct udevice_id xhci_rcar_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(usb_xhci) = {
+U_BOOT_DRIVER(xhci_rcar) = {
        .name           = "xhci_rcar",
        .id             = UCLASS_USB,
        .probe          = xhci_rcar_probe,