[PATCH] bootcount: Give i2c-eeprom a unique identifier
Michael Nazzareno Trimarchi
michael at amarulasolutions.com
Sun Mar 22 19:46:40 CET 2026
Hi
On Fri, Mar 20, 2026 at 9:53 PM Tom Rini <trini at konsulko.com> wrote:
>
> 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
>
Reviewed-by: Michael Trimarchi <michael at amarulasolutions.com>
More information about the U-Boot
mailing list