rtc: pl031: switch to devm_rtc_allocate_device/rtc_register_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 9 Sep 2018 20:38:48 +0000 (22:38 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 11 Sep 2018 11:56:35 +0000 (13:56 +0200)
commitb7aff107f34f007f32f45136c9a935912a481d32
treeb9812f58e8039ff0789a2bc6d883bd7912a4bc5c
parentc778ec85825dc895936940072aea9fe9037db684
rtc: pl031: switch to devm_rtc_allocate_device/rtc_register_device

Switch to devm_rtc_allocate_device to simplify the erro and driver removal
paths.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pl031.c