]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: mpc5xxx: fix error handing in mpc52xx_uart_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 07:34:27 +0000 (15:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2013 18:54:55 +0000 (11:54 -0700)
commit6fc6dac9f10403fed680c833f0a54c3c474f7a2b
treeadcc2e3ae5f0de71339730ff8704c3fe1c7deb2c
parent2444ab941d5fc8bc0bacc57ea820c2ef1c886ff4
tty: serial: mpc5xxx: fix error handing in mpc52xx_uart_init()

Add the missing uart_unregister_driver() and uninit before return
from mpc52xx_uart_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/mpc52xx_uart.c