tty: tty_port: Move the IO_ERROR clear
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:16:57 +0000 (13:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:06 +0000 (15:18 -0800)
commita9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4
tree91b83c156abea75c5384556b8b7bc24edb1bc169
parentd74e8286885ac9f3ccc5e2dc2301f21bbec90f7b
tty: tty_port: Move the IO_ERROR clear

Some devices want to set IO_ERROR in their activate methods so that you can
be handed a 'dead' port for operations like setserial. Thus we need to
clear the flag before activate so that activate can choose to set the flag
and still return 0.

This is fine as the file handle/tty are not accessible to the user yet.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c