serial: 8250: Simplify capabilities reset at port unregister
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 24 Feb 2015 19:25:03 +0000 (14:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 15:14:27 +0000 (16:14 +0100)
commit5db496b9c808270e9e569fa721d1ecdd8f145142
treefc236ce7735470dca8e0c5574af080fa2e6c2455
parente6e98ceff34d398ca98b78f90966b6b90f668b68
serial: 8250: Simplify capabilities reset at port unregister

Since uart->port.type has just reset to PORT_UNKNOWN, capabilities
are reset to uart_config[PORT_UNKNOWN].flags, which is 0.

Removes unnecessary dependency on uart_config[].

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c