serial: serial_msm: initialize uart only before relocation

The uart is already initialized prior to relocation,
reinitialization after relocation is unnecessary.

Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Ramon Fried 2018-05-16 12:13:38 +03:00 committed by Tom Rini
parent 11d59fe537
commit 7e5ad796bc

View file

@ -184,6 +184,10 @@ static int msm_serial_probe(struct udevice *dev)
int ret;
struct msm_serial_data *priv = dev_get_priv(dev);
/* No need to reinitialize the UART after relocation */
if (gd->flags & GD_FLG_RELOC)
return 0;
ret = msm_uart_clk_init(dev);
if (ret)
return ret;