serial: max310x: Unregister UARTs on error
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 7 Jun 2016 15:59:26 +0000 (18:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:55:35 +0000 (13:55 -0700)
commitc8246fefe2c995e128345614fb98b5ed5014318b
treec80d661214d2b7478302084bb7503b836c1112f1
parente940e817a701dcaf0d218571c251af0cb6d1bbfb
serial: max310x: Unregister UARTs on error

Add uart_remove_one_port() for error path.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c