From: Jiri Slaby Date: Mon, 2 Apr 2012 11:54:20 +0000 (+0200) Subject: TTY: bfin_jtag_comm, use tty from tty_port X-Git-Tag: v3.5-rc1~146^2~30^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63f9f7478584e9a09d6aaf97f617937358b4dd2;p=pandora-kernel.git TTY: bfin_jtag_comm, use tty from tty_port Switch from mutex to tty_port->lock and to tty refcounting. This needs a 'continue' to be added to re-grab a tty after schedule returns. And since tty is not protected by bfin_jc_tty_mutex remove it as well. But this needs tty_port->count to be protected by tty_port->lock now. Signed-off-by: Jiri Slaby Cc: Mike Frysinger Cc: uclinux-dist-devel@blackfin.uclinux.org Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed