[SERIAL] Fix oops when removing suspended serial port
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 1 Oct 2006 16:17:40 +0000 (17:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Oct 2006 16:17:40 +0000 (17:17 +0100)
A serial card might have been removed when the system is resumed.
This results in a suspended port being shut down, which results in
the ports shutdown method being called twice in a row.  This causes
BUGs.  Avoid this by tracking the suspended state separately from
the initialised state.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found