serial_lpuart: make clock failure less verbose

Some device may enable CONFIG_CLK but not still support this clock in
CC, so better use debug() in place of dev_warn() otherwise a lot of
boards will throw useless dev_warn()s.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Giulio Benetti 2020-01-31 14:39:47 +01:00 committed by Stefano Babic
parent 291e3ab904
commit 289dd9f072

View File

@ -499,7 +499,7 @@ static int lpuart_serial_probe(struct udevice *dev)
return ret;
}
} else {
dev_warn(dev, "Failed to get per clk: %d\n", ret);
debug("%s: Failed to get per clk: %d\n", __func__, ret);
}
#endif