tty: serial: msm: Only configure MND registers on hw that has it
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 12 May 2016 01:02:27 +0000 (18:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 17:23:54 +0000 (10:23 -0700)
commit2a31f094553125e0353b9f7e7b6e9aeea752fed3
tree0e931296737e473cc6186633e05739315e51c2c2
parent321737416c72dc3d3dd8753c3684c6eb86d0ea6c
tty: serial: msm: Only configure MND registers on hw that has it

The registers that msm_serial_set_mnd_regs() writes only exist on
the non-uartdm hardware, so let's return early here if this
function is called on uartdm hardware. This also prevents us from
messing up the uartclk variable if the uartclk rate happens to be
19.2 or 4.8 MHz.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c
This page took 0.02563 seconds and 5 git commands to generate.