From: Jiri Slaby Date: Wed, 9 Nov 2011 20:33:46 +0000 (+0100) Subject: TTY: serial, use tty_port_close_start helper X-Git-Tag: v3.3-rc1~154^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30ccf08e8e01060288587f52a78c3ca0fcfc1fc;p=pandora-kernel.git TTY: serial, use tty_port_close_start helper After the previous patches, the code is almost identical. There are few differences in the helper code: 1) flush_buffer when flow_stopped * when a user doesn't care about the data, delete it anyways 2) ASYNCB_INITIALIZED test before wait_until_sent_from * obviously, there is nothing to wait for if the port is dead 3) drain_delay wait * we don't set drain_delay So we can use the helper now. It indeed removes a bunch of duplicated code. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed