rtc: pl031: use devm_* for allocating memory and mapping resource
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Sep 2017 10:22:05 +0000 (11:22 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 14:29:49 +0000 (16:29 +0200)
commit273c868e85a56481ccb34822be2033dbe63248fb
tree44ad92c358a424f8c310fdaf3d4f0f85c93c82ad
parenteb508b36d549d96a7ddcf1fe0656cdd86b038fe5
rtc: pl031: use devm_* for allocating memory and mapping resource

Use the devm_* APIs for allocating memory and mapping the memory in
the probe function to relieve the driver from having to deal with
this in the cleanup paths.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pl031.c