TTY: call tty_port_destroy in the rest of drivers
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / irda / ircomm / ircomm_tty.c
index 496ce2cebcd7316f7a1eab1051758e2f90b22263..a68c88cdec6eeb43533c6a4a33f17932e8743c7a 100644 (file)
@@ -183,6 +183,7 @@ static void __exit __ircomm_tty_cleanup(struct ircomm_tty_cb *self)
        ircomm_tty_shutdown(self);
 
        self->magic = 0;
+       tty_port_destroy(&self->port);
        kfree(self);
 }