mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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:
parent
11d59fe537
commit
7e5ad796bc
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue