]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit302f2b455a619d36d302f55b1abfc8eddf50f6eb
treefc236ce7735470dca8e0c5574af080fa2e6c2455
parent4ebfb648e452e03599480414034a0ec8da83d1e6
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