]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
bootcount: Give i2c-eeprom a unique identifier
authorTom Rini <trini@konsulko.com>
Fri, 20 Mar 2026 20:53:26 +0000 (14:53 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 3 Apr 2026 18:06:18 +0000 (12:06 -0600)
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.

Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/bootcount/i2c-eeprom.c

index 12c430465c981ae1e8764a16cfdb36c28275faa8..f54515f451ecfe9e6d5a14366854eb4d24b005f5 100644 (file)
@@ -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),