]> git.baikalelectronics.ru Git - kernel.git/commit
MMC: sdio, use kref from tty_port
authorJiri Slaby <jslaby@suse.cz>
Thu, 15 Nov 2012 08:49:52 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:20:57 +0000 (17:20 -0800)
commitc0cfad05ef287a4c7856b4faa0d5fda8f3634ab3
tree64e9a0939767882d2b5514033431174a0549597e
parent10a99b600426aa13b41d84668a33b219146d8b73
MMC: sdio, use kref from tty_port

After commit "TTY: move tty buffers to tty_port", the tty buffers are
not freed in some drivers. This is because tty_port_destructor is not
called whenever a tty_port is freed. This was an assumption I counted
with but was unfortunately untrue. So fix the drivers to fulfil this
assumption.

Here it is enough to switch to refcounting in tty_port.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/card/sdio_uart.c