serial: rate limit custom-speed deprecation notice
authorJohan Hovold <johan@kernel.org>
Tue, 6 Jun 2017 10:54:33 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 09:49:57 +0000 (11:49 +0200)
commitdc2f7271593dacaf1ce3b0c57dc657c3221e841c
tree5660cdb333e57b9d2b2f31c9003f07e6b844218c
parent54ebbfb1603415d9953c150535850d30609ef077
serial: rate limit custom-speed deprecation notice

Contrary to what a comment claimed, the ASYNC_SPD flags and custom
divisor can be set by a non-privileged user so rate limit the
deprecation notice as was intended.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c