gpio: aspeed: Make U_BOOT_DRIVER entries unique
Subsystems (2)
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.
Signed-off-by Tom Rini <[email protected]>
--- drivers/gpio/gpio-aspeed-g7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-aspeed-g7.c +1 -1
@@ -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
Quoted 6 lines · Tom Rini
All instances of the
U_BOOT_DRIVERmust 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