serial/amba-pl011: use devm_* managed resources
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2012 11:36:01 +0000 (13:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 18:29:44 +0000 (11:29 -0700)
commitde609582072af195673e72d9e7647d5cba8eb7e4
tree3bdcab5105dfd648636cd5dab9d63ba039386a05
parent40477d0e04fd8d004ee9c70ad57e397a6b6ead63
serial/amba-pl011: use devm_* managed resources

This switches a bunch of allocation and remapping to use the
devm_* garbage collected methods and cleans up the error
path and remove() paths consequently.

devm_ioremap() is only in <linux/io.h> so fix up the
erroneous <asm/*> include as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Domenico Andreoli <domenico.andreoli@linux.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c
This page took 0.040817 seconds and 5 git commands to generate.