serial: mcf: missing uart_unregister_driver() on error in mcf_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 01:17:23 +0000 (09:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2013 18:54:56 +0000 (11:54 -0700)
commit2b359172e013c6b1b7e424e5be92a70fc7cceaaf
tree6d17b11f6aa885312bd35dd4f76faacea409f8dd
parent9bcc3278445bedc272dc2c432e81502d00ac9182
serial: mcf: missing uart_unregister_driver() on error in mcf_init()

Add the missing uart_unregister_driver() before return
from mcf_init() 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/mcf.c