summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-06-05 10:51:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-10 19:12:09 +0200
commit87bb008c77a326855def246bf877e651d1fa74aa (patch)
tree9c7e0b0dafdda7b760a2a43b420ca54fbd009717 /drivers/tty
parentserial: imx: Use dev_info() instead of pr_info() (diff)
downloadlinux-87bb008c77a326855def246bf877e651d1fa74aa.tar.xz
linux-87bb008c77a326855def246bf877e651d1fa74aa.zip
tty: serial: 8250-of: Do not warn on deferred probe
Deferred probe is an expected return value for clk_get() on many platforms. The driver deals with it properly, so there's no need to output a warning that may potentially confuse users. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_of.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_of.c b/drivers/tty/serial/8250/8250_of.c
index 1308b3d1e17a..0826cfdbd406 100644
--- a/drivers/tty/serial/8250/8250_of.c
+++ b/drivers/tty/serial/8250/8250_of.c
@@ -70,9 +70,10 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
/* Get clk rate through clk driver if present */
info->clk = devm_clk_get(&ofdev->dev, NULL);
if (IS_ERR(info->clk)) {
- dev_warn(&ofdev->dev,
- "clk or clock-frequency not defined\n");
ret = PTR_ERR(info->clk);
+ if (ret != -EPROBE_DEFER)
+ dev_warn(&ofdev->dev,
+ "failed to get clock: %d\n", ret);
goto err_pmruntime;
}