arm: Fix DS1307 initialization for common STM32 logic

Signed-off-by: Rodrigo Sim rcsim10@gmail.com
This commit is contained in:
Rodrigo Sim 2024-08-19 20:17:26 -03:00 committed by Xiang Xiao
parent 4d4d8a6ca5
commit 86c2e429eb

View File

@ -63,7 +63,7 @@ int board_ds1307_initialize(int busno)
struct i2c_master_s *i2c;
int ret;
rtcinfo("Initialize I2C%d\n", DS1307_I2C_BUS);
rtcinfo("Initialize I2C%d\n", busno);
/* Initialize I2C */
@ -81,7 +81,7 @@ int board_ds1307_initialize(int busno)
if (ret < 0)
{
rtcerr("ERROR: Failed to bind I2C%d to the DS1307 RTC driver\n",
DS1307_I2C_BUS);
busno);
return -ENODEV;
}