Skip to contentSkip to conversation

gpio: aspeed: Make U_BOOT_DRIVER entries unique

PATCH In review Tom Rini 1 participant 2 messages Sep 25, 2025 – Oct 8, 2025

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 gpio: aspeed: Make U_BOOT_DRIVER entries unique

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. In this case gpio-aspeed-g7 was using the same name as gpio-aspeed.

---
 drivers/gpio/gpio-aspeed-g7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-aspeed-g7.c +1 -1
index 4c6ab86203c2..4607468ca05f 100644
@@ -141,7 +141,7 @@ static const struct udevice_id aspeed_gpio_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(gpio_aspeed) = {
+U_BOOT_DRIVER(gpio_aspeed_g7) = {
 	.name   = "gpio-aspeed",
 	.id     = UCLASS_GPIO,
 	.of_match = aspeed_gpio_ids,
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

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. In this case gpio-aspeed-g7 was using the same name as gpio-aspeed.

Applied to u-boot/master, thanks!

[1/1] gpio: aspeed: Make U_BOOT_DRIVER entries unique

      commit: da93f8a078b40096da740562d3c5c2104f8f3696
Signature · 1 line
Tom