staging: dgap: move tty_port_init() for serial_ports.
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 May 2014 10:24:47 +0000 (19:24 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:35:25 +0000 (10:35 -0700)
commita66369a59016e6f5c5da77afbd53eec49b03fb68
treef030f38003d556c066551abcac4aeee17d02b7f4
parent0ade4a34fd439d62df46937e8f3e584eb0879579
staging: dgap: move tty_port_init() for serial_ports.

If printer_ports which is allocated after serial_ports is failed
to allocate, tty_port_init for serial_ports doesn't need anymore.
So move this after allocating memory for printer_ports.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c