board/stm32f4discovery: Fix ds1307.c initialization

The ds1307 doesn't need to call i2c_register() because it is done
inside stm32_bringup.c

Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
Alan Carvalho de Assis 2024-04-16 19:26:34 -03:00 committed by Xiang Xiao
parent 58f0ee6364
commit 96dd39ba2e
1 changed files with 0 additions and 11 deletions

View File

@ -87,17 +87,6 @@ int stm32_ds1307_init(void)
return -ENODEV;
}
#ifdef CONFIG_I2C_DRIVER
/* Register the I2C to get the "nsh> i2c bus" command working */
ret = i2c_register(i2c, DS1307_I2C_BUS);
if (ret < 0)
{
rtcerr("ERROR: Failed to register I2C%d driver: %d\n", bus, ret);
return -ENODEV;
}
#endif
/* Synchronize the system time to the RTC time */
clock_synchronize(NULL);