net: sntp: remove CONFIG_TIMESTAMP constraint
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 23 Oct 2020 10:58:27 +0000 (12:58 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 1 Dec 2020 19:12:28 +0000 (14:12 -0500)
commite1864db60d3a4281f440ca4230b4e810bde0fb99
tree0440554a809218a8a58354908a4a94257585cd76
parent2c02152a8e2d640fe1d93177fbf523d25cd3e8f9
net: sntp: remove CONFIG_TIMESTAMP constraint

CONFIG_TIMESTAMP is not related to the RTC drivers. It does not make any
sense to let the updating of the RTC by the sntp command depend on it.

Drop the CONFIG_TIMESTAMP checks.

Furthermore function dm_rtc_set() is enabled by CONFIG_DM_RTC. There is no
reason to require CONFIG_CMD_DATE when using a driver model RTC. The UEFI
sub-system can consume the RTC functions even if there is not date command.

Only check CONFIG_CMD_DATE when using a non-driver model RTC.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
net/sntp.c