drm/tilcdc: Defer probe if there are no connectors
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 30 Mar 2018 13:15:53 +0000 (15:15 +0200)
committerJyri Sarha <jsarha@ti.com>
Thu, 5 Jul 2018 11:06:22 +0000 (14:06 +0300)
commita132b5a5081ca106193a02e0835e01db7c4055ec
tree9f95f583bfee07b83429732bfbcfee3a7b48e929
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
drm/tilcdc: Defer probe if there are no connectors

During probe there may not be any connectors yet if e.g. the panel
failed or hasn't been probed yet. I hitting this in practice the panels
probing was being delayed due to using a gpio backlight.

Fix this by returning -EPROBE_DEFER so the probing will be retried.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c