]> git.dujemihanovic.xyz Git - u-boot.git/commit
rtc: use probe() to initialize emulated RTC
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 30 Oct 2020 02:05:47 +0000 (03:05 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 30 Oct 2020 13:20:26 +0000 (14:20 +0100)
commit0ca4b558b59d69d0b39ce42664c601690ecc8d6c
treea044a3a24453fc4f1f1da1cbe2ee19e2b3708c72
parent314bed6c854e41b2edd5cefb7009e3b6040abd28
rtc: use probe() to initialize emulated RTC

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@gmx.de>
drivers/rtc/emul_rtc.c