Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 273c868e authored by Russell King's avatar Russell King Committed by Alexandre Belloni
Browse files

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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent eb508b36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment