diff options
| author | Tom Rini <[email protected]> | 2026-03-23 16:55:37 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-04-07 11:32:56 -0600 |
| commit | 8c212d6e2e778b4f294d1d9f85eac9680a66d463 (patch) | |
| tree | da6e286dd2bf5b06be4caf5cb5e6c0edee548e0b /drivers/usb | |
| parent | 9eb3592cbcb318a84c8ed29e432dc01c69a2bc75 (diff) | |
global: Correct duplicate U_BOOT_DRIVER entry names
The U_BOOT_DRIVER macro creates a list of drivers used at link time, and
all entries here must be unique. This in turn means that all entries in
the code should also be unique in order to not lead to build failures
later with unexpected build combinations. Typically, the problem we have
here is when a driver is obviously based on another driver and didn't
update this particular field and so while the name field reflects
something unique the linker entry itself is not. In a few places this
provides a more suitable string name as well, however.
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Svyatoslav Ryhel <[email protected]> # Tegra
Reviewed-by: Peter Robinson <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers/usb')
| -rw-r--r-- | drivers/usb/dwc3/dwc3-meson-g12a.c | 2 | ||||
| -rw-r--r-- | drivers/usb/dwc3/dwc3-meson-gxl.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-exynos.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-msm.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-tegra.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-vf.c | 2 | ||||
| -rw-r--r-- | drivers/usb/host/ohci-da8xx.c | 2 | ||||
| -rw-r--r-- | drivers/usb/musb-new/pic32.c | 2 | ||||
| -rw-r--r-- | drivers/usb/musb-new/sc5xx.c | 2 | ||||
| -rw-r--r-- | drivers/usb/musb-new/sunxi.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 41d15996e5b..49e9c3fa0e9 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -533,7 +533,7 @@ static const struct udevice_id dwc3_meson_g12a_ids[] = { { } }; -U_BOOT_DRIVER(dwc3_generic_wrapper) = { +U_BOOT_DRIVER(dwc3_meson_g12a) = { .name = "dwc3-meson-g12a", .id = UCLASS_SIMPLE_BUS, .of_match = dwc3_meson_g12a_ids, diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c index 5fb9b477ada..0edf41a4720 100644 --- a/drivers/usb/dwc3/dwc3-meson-gxl.c +++ b/drivers/usb/dwc3/dwc3-meson-gxl.c @@ -430,7 +430,7 @@ static const struct udevice_id dwc3_meson_gxl_ids[] = { { } }; -U_BOOT_DRIVER(dwc3_generic_wrapper) = { +U_BOOT_DRIVER(dwc3_meson_gxl) = { .name = "dwc3-meson-gxl", .id = UCLASS_SIMPLE_BUS, .of_match = dwc3_meson_gxl_ids, diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index e1fc04efd2e..ec21b7c6246 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -249,7 +249,7 @@ static const struct udevice_id ehci_usb_ids[] = { { } }; -U_BOOT_DRIVER(usb_ehci) = { +U_BOOT_DRIVER(ehci_exynos) = { .name = "ehci_exynos", .id = UCLASS_USB, .of_match = ehci_usb_ids, diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index 8aeb6a91556..a58eff7cb9c 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -117,7 +117,7 @@ void ci_init_after_reset(struct ehci_ctrl *ctrl) } #endif -U_BOOT_DRIVER(usb_ehci) = { +U_BOOT_DRIVER(ehci_msm) = { .name = "ehci_msm", .id = UCLASS_USB, .of_to_plat = ehci_usb_of_to_plat, diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 89b87886da1..c1f76752cb1 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -969,7 +969,7 @@ static const struct udevice_id ehci_usb_ids[] = { { } }; -U_BOOT_DRIVER(usb_ehci) = { +U_BOOT_DRIVER(ehci_tegra) = { .name = "ehci_tegra", .id = UCLASS_USB, .of_match = ehci_usb_ids, diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 5afe28ea303..96d1363a76e 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -344,7 +344,7 @@ static const struct udevice_id vf_usb_ids[] = { { } }; -U_BOOT_DRIVER(usb_ehci) = { +U_BOOT_DRIVER(ehci_vf) = { .name = "ehci_vf", .id = UCLASS_USB, .of_match = vf_usb_ids, diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d321d147c2f..a36950082af 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -165,7 +165,7 @@ static const struct udevice_id da8xx_ohci_ids[] = { { } }; -U_BOOT_DRIVER(ohci_generic) = { +U_BOOT_DRIVER(ohci_da8xx) = { .name = "ohci-da8xx", .id = UCLASS_USB, .of_match = da8xx_ohci_ids, diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 0b25e5893b3..b878e979d93 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -279,7 +279,7 @@ static const struct udevice_id pic32_musb_ids[] = { { } }; -U_BOOT_DRIVER(usb_musb) = { +U_BOOT_DRIVER(musb_pic32) = { .name = "pic32-musb", .id = UCLASS_USB, .of_match = pic32_musb_ids, diff --git a/drivers/usb/musb-new/sc5xx.c b/drivers/usb/musb-new/sc5xx.c index 991846818a2..b1765abe827 100644 --- a/drivers/usb/musb-new/sc5xx.c +++ b/drivers/usb/musb-new/sc5xx.c @@ -188,7 +188,7 @@ static const struct udevice_id sc5xx_musb_ids[] = { { } }; -U_BOOT_DRIVER(usb_musb) = { +U_BOOT_DRIVER(musb_sc5xx) = { .name = "sc5xx-musb", .id = UCLASS_USB, .of_match = sc5xx_musb_ids, diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index b577ba41878..0747f025f2a 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -545,7 +545,7 @@ static const struct udevice_id sunxi_musb_ids[] = { { } }; -U_BOOT_DRIVER(usb_musb) = { +U_BOOT_DRIVER(musb_sunxi) = { .name = "sunxi-musb", #ifdef CONFIG_USB_MUSB_HOST .id = UCLASS_USB, |
