]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
gpio: aspeed: Make U_BOOT_DRIVER entries unique
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:56:12 +0000 (14:56 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 19:54:58 +0000 (13:54 -0600)
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@konsulko.com>
drivers/gpio/gpio-aspeed-g7.c

index 4c6ab86203c253a6e6302f5cbca6a5925db5b7f8..4607468ca05f205032c510e4277f4d69f3b14ae4 100644 (file)
@@ -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,