]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8578c0b0a2894b3683b848522f7a0748538c89b
tree44ad92c358a424f8c310fdaf3d4f0f85c93c82ad
parentdc7f0b4bc8533da29d1cf7b93a99b1d3a6341863
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