serial: serial_msm: fail probe if settings clocks fails
authorRamon Fried <ramon.fried@gmail.com>
Wed, 16 May 2018 09:13:37 +0000 (12:13 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 26 May 2018 16:46:50 +0000 (12:46 -0400)
commit11d59fe5374a1a35d6293951794e32f0c0126739
treeac51de8a735a9f5c7404b1342a9b94936a8d31ae
parentffada23ca7fe6f0cff960bbb1288060d227f2d93
serial: serial_msm: fail probe if settings clocks fails

Failure to set the clocks will causes data abort exception when
trying to write to AHB uart registers.
This patch ensures that we don't touch these registers if clock
setting failed.

Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_msm.c