tty: serial: omap: switch over to devm_ioremap_resource
authorFelipe Balbi <balbi@ti.com>
Wed, 23 Apr 2014 14:58:33 +0000 (09:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 23:19:02 +0000 (16:19 -0700)
commitd044d2356f8dd18c755e13f34318bc03ef9c6887
tree16d90ad7c32bdd3a8fb324c02d4242a43e8d27cc
parent54af692c9fcd736977bc94293c73997e94f17378
tty: serial: omap: switch over to devm_ioremap_resource

just using helper function to remove some duplicated
code a bit. While at that, also move allocation of
struct uart_omap_port higher in the code so that
we return much earlier in case of no memory.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c