[PATCH] gpio: aspeed: Make U_BOOT_DRIVER entries unique

Tom Rini trini at konsulko.com
Thu Sep 25 22:56:12 CEST 2025


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.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/gpio/gpio-aspeed-g7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-aspeed-g7.c b/drivers/gpio/gpio-aspeed-g7.c
index 4c6ab86203c2..4607468ca05f 100644
--- a/drivers/gpio/gpio-aspeed-g7.c
+++ b/drivers/gpio/gpio-aspeed-g7.c
@@ -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,
-- 
2.43.0



More information about the U-Boot mailing list