OSDN Git Service

greybus: uart: fix the clean up while uart initiates connection unsucessfully
authorPhong Tran <tranmanphong@gmail.com>
Wed, 10 Jun 2015 14:03:17 +0000 (21:03 +0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 11 Jun 2015 22:57:44 +0000 (15:57 -0700)
commit55a8e3550364a35bc5d40fa0e445049a5df62627
treec8c505e762ed709b600aba23d41745c018d7291c
parent3d0421e0ab5315051b949ea70dee37c15e860706
greybus: uart: fix the clean up while uart initiates connection unsucessfully

There is lack of unregister and free the tty driver.
This patch fixes it.

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c