rtc: explicitly set tm_sec = 0 for drivers with minute accurancy
commitd2c92705c54c9c24f2b8be57b968ad21a30412e5
authorUwe Kleine-König <uwe@kleine-koenig.org>
Mon, 11 Jul 2016 08:05:27 +0000 (11 10:05 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 19 Jul 2016 16:15:21 +0000 (19 18:15 +0200)
treeef386f3b15925c3d1b1d8aebf4e0e774ec7f74cd
parent70c96dfac0e231424e17743bd52f6cd2ff1f2439
rtc: explicitly set tm_sec = 0 for drivers with minute accurancy

Since all time members of the alarm data is initialized to -1 the drivers
are responsible to set the tm_sec member to 0.

Fixes: d68778b80dd7 ("rtc: initialize output parameter for read alarm to "uninitialized"")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-da9052.c
drivers/rtc/rtc-da9055.c
drivers/rtc/rtc-davinci.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-rc5t583.c