drm/panfrost: Don't scream about deferred probe
authorRobin Murphy <robin.murphy@arm.com>
Fri, 3 May 2019 15:31:44 +0000 (16:31 +0100)
committerRob Herring <robh@kernel.org>
Fri, 3 May 2019 20:36:14 +0000 (15:36 -0500)
Probe deferral is far from "fatal".

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/b6ff1f18ac0612f29fd2e3336d6663b7e02db572.1556195258.git.robin.murphy@arm.com
drivers/gpu/drm/panfrost/panfrost_drv.c

index 2f5c886..94b0819 100644 (file)
@@ -395,13 +395,15 @@ static int panfrost_probe(struct platform_device *pdev)
 
        err = panfrost_device_init(pfdev);
        if (err) {
-               dev_err(&pdev->dev, "Fatal error during GPU init\n");
+               if (err != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "Fatal error during GPU init\n");
                goto err_out0;
        }
 
        err = panfrost_devfreq_init(pfdev);
        if (err) {
-               dev_err(&pdev->dev, "Fatal error during devfreq init\n");
+               if (err != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "Fatal error during devfreq init\n");
                goto err_out1;
        }