rtc: s5m: switch to devm_rtc_allocate_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 4 Aug 2021 10:41:29 +0000 (12:41 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Aug 2021 08:31:59 +0000 (10:31 +0200)
commitdae68c6b9620ab694c8334de640c6d64daeb90e2
tree66b9bbd46791ae7633f2ef5503cf171bdf75f9bf
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
rtc: s5m: switch to devm_rtc_allocate_device

Switch to devm_rtc_allocate_device/devm_rtc_register_device, this allows
for further improvement of the driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210804104133.5158-1-alexandre.belloni@bootlin.com
drivers/rtc/rtc-s5m.c