aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-06-04 17:31:50 +0200
committerThierry Reding <treding@nvidia.com>2019-06-05 15:05:49 +0200
commit4bb923e8075f3acbe2e422e9bfd0235b21d3e643 (patch)
treeaefcacd9b0c05d3466b9bebe9b81f6f6cabe9160 /drivers/gpu/host1x
parentLinux 5.2-rc1 (diff)
downloadlinux-dev-4bb923e8075f3acbe2e422e9bfd0235b21d3e643.tar.xz
linux-dev-4bb923e8075f3acbe2e422e9bfd0235b21d3e643.zip
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 <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/dev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
index ee3c7b81a29d..45ef1fc538cf 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;
}