serial: imx: Use devm_* APIs
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 7 Jan 2013 04:55:06 +0000 (10:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 06:02:52 +0000 (22:02 -0800)
commit42d34191545be343909417dd05db799686f2e48e
tree6a2c5500894b7cab610dd8cac29910406b481792
parent50bbdba3dd67f2b5958816f6a9460205cd14866a
serial: imx: Use devm_* APIs

devm_* APIs are device managed and make cleanup and exit code simpler
and easier.

Cc: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c