[PATCH 2/4] rtc: pl031: use devm_* for allocating memory and mapping resource

Linus Walleij linus.walleij at linaro.org
Wed Aug 2 05:31:41 PDT 2017


On Fri, Jul 21, 2017 at 1:18 AM, Russell King
<rmk+kernel at armlinux.org.uk> wrote:

> 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 at armlinux.org.uk>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list