From: Thierry Reding Date: Tue, 4 Jun 2019 15:31:50 +0000 (+0200) Subject: gpu: host1x: Do not output error message for deferred probe X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4bb923e8075f3acbe2e422e9bfd0235b21d3e643;p=linux.git gpu: host1x: Do not output error message for deferred probe When deferring probe, avoid logging a confusing error message. While at it, make the error message more informational. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index ee3c7b81a29d8..45ef1fc538cfa 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -258,8 +258,11 @@ static int host1x_probe(struct platform_device *pdev) host->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(host->clk)) { - dev_err(&pdev->dev, "failed to get clock\n"); err = PTR_ERR(host->clk); + + if (err != -EPROBE_DEFER) + dev_err(&pdev->dev, "failed to get clock: %d\n", err); + return err; }