drivers: rtc: fix null pointer access in armada38x_rtc_reset
authorFrancois Berder <fberder@outlook.fr>
Mon, 28 Feb 2022 09:31:45 +0000 (10:31 +0100)
committerStefan Roese <sr@denx.de>
Fri, 4 Mar 2022 07:38:05 +0000 (08:38 +0100)
commit2454de2c34531941756d259771fd0266ea2d5d0b
tree6cd31b2e957201e5de250cba13303c84467b6405
parent1fd54253bca7d43d046bba4853fe5fafd034bc17
drivers: rtc: fix null pointer access in armada38x_rtc_reset

Replace null pointer by pointer to device registers when calling
armada38x_rtc_write.

Signed-off-by: Francois Berder <fberder@outlook.fr>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/rtc/armada38x.c