linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/tilcdc: Defer probe if no encoders/connectors found
@ 2013-12-18 13:56 Markus Pargmann
  2013-12-18 15:01 ` Rob Clark
  2014-02-16 22:10 ` Markus Pargmann
  0 siblings, 2 replies; 3+ messages in thread
From: Markus Pargmann @ 2013-12-18 13:56 UTC (permalink / raw)
  To: David Airlie; +Cc: dri-devel, linux-omap, kernel, Markus Pargmann

At the moment this driver fails to load if no encoders/connectors were
found. In case other drivers that register encoders/connectors
(tilcdc_panel) are defered it would be better to check for
encoders/connectors later again. This patch replaces the returncode
-ENXIO with -EPROBE_DEFER to get a working setup even if tilcdc_panel
probes after tilcdc.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index 116da19..217303c 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -84,7 +84,7 @@ static int modeset_init(struct drm_device *dev)
 	if ((priv->num_encoders == 0) || (priv->num_connectors == 0)) {
 		/* oh nos! */
 		dev_err(dev->dev, "no encoders/connectors found\n");
-		return -ENXIO;
+		return -EPROBE_DEFER;
 	}
 
 	dev->mode_config.min_width = 0;
-- 
1.8.5.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-16 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 13:56 [PATCH] drm/tilcdc: Defer probe if no encoders/connectors found Markus Pargmann
2013-12-18 15:01 ` Rob Clark
2014-02-16 22:10 ` Markus Pargmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).