[PATCH 1/2] rtc: use probe() to initialize emulated RTC

Simon Glass sjg at chromium.org
Tue Nov 3 16:12:03 CET 2020


On Thu, 29 Oct 2020 at 21:20, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Currently the emulated RTC is initialized in the emul_rtc_get() get
> function. This does not match the design of the driver model.
>
> Move the initialization of the emulated RTC to the probe() function.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  drivers/rtc/emul_rtc.c | 18 ++++++++++++------
>  1 file changed, 12 insertions(+), 6 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list