bootcount: Give i2c-eeprom a unique identifier
PATCH 1/1 bootcount: Give i2c-eeprom a unique identifier
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 <[email protected]>
--- drivers/bootcount/i2c-eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bootcount/i2c-eeprom.c +1 -1
@@ -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 ),
Signature · 1 line
2.43.0
Hi
Quoted 24 lines · Tom Rini
Every
U_BOOT_DRIVERentry must be unique and this driver was re-using the name of thebootcount_spi_flashdriver. Change tobootcount_i2c_eeprom.Signed-off-by Tom Rini <[email protected]>--- drivers/bootcount/i2c-eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/bootcount/i2c-eeprom.c +1
-2@@ -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 ), --
Quoted 2 lines
2.43.0
Reviewed-by Michael Trimarchi <[email protected]>
Quoted 5 lines · Tom Rini
Every
U_BOOT_DRIVERentry must be unique and this driver was re-using the name of thebootcount_spi_flashdriver. Change tobootcount_i2c_eeprom.
Applied to u-boot/next, thanks!
[1/1] bootcount: Give i2c-eeprom a unique identifier
commit: e5e268091e5ead232e2938a152ae0662fefc2ae4
Signature · 1 line
Tom