drm/omap: Init fbdev emulation only when we have displays
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 15 Dec 2017 14:08:31 +0000 (16:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commitda77772172059e609ef5135881df55e3e6c5c808
tree4572ea25d567c20d9b38191fc474c56a8a7e3dd3
parentefd1f06be004a6a384f0482ef76c12bc202e1b8e
drm/omap: Init fbdev emulation only when we have displays

Do not try to init the fbdev if either num_crtcs or num_connectors is 0.
In this case we do not have display so the fbdev init would fail anyways.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_fbdev.c