rtc: ds1307: switch to rtc_register_device
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 09:42:06 +0000 (11:42 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 7 Jul 2017 11:14:21 +0000 (13:14 +0200)
commit69b119a642b7e143be08f9cbabca7bc910f5720d
treefb4281ec2f31223b6fbc3fdaa5dfa344164ebde4
parent2a52482ffb1a65249049eaec9e3560a1e79abf3d
rtc: ds1307: switch to rtc_register_device

This removes a possible race condition and crash and allows for further
improvement of the driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c