From: Laurent Pinchart Date: Fri, 13 Oct 2017 14:58:57 +0000 (+0300) Subject: drm: omapdrm: dpi: Don't treat GPIO probe deferral as an error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a228a0d7e4e12c3bf1ee442d6c73aae39dc296a;p=openwrt%2Fstaging%2Fblogic.git drm: omapdrm: dpi: Don't treat GPIO probe deferral as an error 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 Reviewed-by: Sebastian Reichel Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c b/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c index 947295f9e30f..b8e420c7d680 100644 --- a/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c +++ b/drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c @@ -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; }