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>
lime2-spi
Ramon Fried 7 years ago committed by Tom Rini
parent 11d59fe537
commit 7e5ad796bc
  1. 4
      drivers/serial/serial_msm.c

@ -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;

Loading…
Cancel
Save