[PATCH] bootcount: Give i2c-eeprom a unique identifier
Tom Rini
trini at konsulko.com
Fri Mar 20 21:53:26 CET 2026
Every U_BOOT_DRIVER entry must be unique and this driver was re-using
the name of the bootcount_spi_flash driver. Change to
bootcount_i2c_eeprom.
Signed-off-by: Tom Rini <trini at konsulko.com>
---
drivers/bootcount/i2c-eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bootcount/i2c-eeprom.c b/drivers/bootcount/i2c-eeprom.c
index 12c430465c98..f54515f451ec 100644
--- a/drivers/bootcount/i2c-eeprom.c
+++ b/drivers/bootcount/i2c-eeprom.c
@@ -85,7 +85,7 @@ static const struct udevice_id bootcount_i2c_eeprom_ids[] = {
{ }
};
-U_BOOT_DRIVER(bootcount_spi_flash) = {
+U_BOOT_DRIVER(bootcount_i2c_eeprom) = {
.name = "bootcount-i2c-eeprom",
.id = UCLASS_BOOTCOUNT,
.priv_auto = sizeof(struct bootcount_i2c_eeprom_priv),
--
2.43.0
More information about the U-Boot
mailing list