serial: 8250: Declare base port operations const
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 24 Feb 2015 19:25:15 +0000 (14:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 17:18:54 +0000 (18:18 +0100)
commit72a33aad476f9d4b1210dbf434f53eeea84909ab
tree89f5866075164c1d81be10c3f13f226887502b9f
parent403753937020549e4bb0d8ef6e915f00a338a096
serial: 8250: Declare base port operations const

The base port operations dispatch table should never be modified
at runtime; the proper way to override base port operations is
to dup the port operations, modify the copy, and point port->ops
at the copy.

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