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:
parent
58f0ee6364
commit
96dd39ba2e
|
@ -87,17 +87,6 @@ int stm32_ds1307_init(void)
|
||||||
return -ENODEV;
|
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 */
|
/* Synchronize the system time to the RTC time */
|
||||||
|
|
||||||
clock_synchronize(NULL);
|
clock_synchronize(NULL);
|
||||||
|
|
Loading…
Reference in New Issue