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:
@@ -184,6 +184,10 @@ static int msm_serial_probe(struct udevice *dev)
|
|||||||
int ret;
|
int ret;
|
||||||
struct msm_serial_data *priv = dev_get_priv(dev);
|
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);
|
ret = msm_uart_clk_init(dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user