drm: omapdrm: dpi: Don't treat GPIO probe deferral as an error
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 13 Oct 2017 14:58:57 +0000 (17:58 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 19 Dec 2017 08:32:00 +0000 (10:32 +0200)
There's no need to print an error message on probe deferral, that's a
normal situation. Probe deferral debugging can be performed by enabling
the related debug messages in the drivers core.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c

index 947295f9e30f0fc2d8a778ba1f3105a87d35a4cf..b8e420c7d680144ad2810802c5dfd2de23d4b3fc 100644 (file)
@@ -173,7 +173,8 @@ static int tfp410_probe_of(struct platform_device *pdev)
        if (gpio_is_valid(gpio) || gpio == -ENOENT) {
                ddata->pd_gpio = gpio;
        } else {
-               dev_err(&pdev->dev, "failed to parse PD gpio\n");
+               if (gpio != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to parse PD gpio\n");
                return gpio;
        }