Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thierry Reding and committed by
Greg Kroah-Hartman
87bb008c f5a9e5f7

+3 -2
+3 -2
drivers/tty/serial/8250/8250_of.c
··· 70 70 /* Get clk rate through clk driver if present */ 71 71 info->clk = devm_clk_get(&ofdev->dev, NULL); 72 72 if (IS_ERR(info->clk)) { 73 - dev_warn(&ofdev->dev, 74 - "clk or clock-frequency not defined\n"); 75 73 ret = PTR_ERR(info->clk); 74 + if (ret != -EPROBE_DEFER) 75 + dev_warn(&ofdev->dev, 76 + "failed to get clock: %d\n", ret); 76 77 goto err_pmruntime; 77 78 } 78 79