]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: class: reimplement devm_rtc_device_register
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 18 Dec 2018 21:15:58 +0000 (22:15 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 18 Dec 2018 21:53:32 +0000 (22:53 +0100)
commita26944149374c19d92f785108b6980f2e54bb517
tree13ceec51aed4178457d88eaadd7d4c337ba342de
parent9a03201170d3de1da47c1b7e2d514e0b15477881
rtc: class: reimplement devm_rtc_device_register

Implement devm_rtc_device_register using devm_rtc_allocate_device and
__rtc_register_device so there is only one path left to register rtc
devices.

Also mark it as deprecated so new drivers will hopefully use
devm_rtc_allocate_device and rtc_register_device that are less race prone
and allow avoiding the 2038, 2070, 2100 and 2106 bugs properly.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/class.c