serial: samsung: missing uart_unregister_driver() on error in s3c24xx_serial_modinit()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 29 May 2013 05:47:09 +0000 (13:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 17:30:43 +0000 (10:30 -0700)
commit147275983e42e07f4c9f3764a91ff65be026aea9
treef4bff42d51e1b5d7e87a3041c7981cabb5e6f79a
parent86b40567b9178d2de8bbc08b04c98c8373ddf194
serial: samsung: missing uart_unregister_driver() on error in s3c24xx_serial_modinit()

Add the missing uart_unregister_driver() before return from
s3c24xx_serial_modinit() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c