rtc: ftrtc010: switch to devm_rtc_allocate_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 4 Jun 2018 14:15:26 +0000 (16:15 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 7 Jun 2018 18:09:49 +0000 (20:09 +0200)
commite38d161f51982d56637d12eb9ad7e1f057be5202
tree9fd6cbb08365b001dd0696733dd64cee2bdb27db
parent32b41f93dcaf240c4e8241b22dbba6f0dbf4de9d
rtc: ftrtc010: switch to devm_rtc_allocate_device

Switch to devm_rtc_allocate_device/rtc_register_device. This allow or
further improvement and simplifies ftrtc010_rtc_remove().

Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ftrtc010.c