]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46016b07189ccc56b25d4dcb4cb26a68bdd09ca7
tree4572ea25d567c20d9b38191fc474c56a8a7e3dd3
parentc3c2863309f2dcaddb02036d907c1e30632e6dd3
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