Browse Source

drm/exynos/fbdev: do not skip fbdev init if there are no connectors

Since connectors can be created dynamically, fbdev should be initialized
even if there are no connectors at the moment. Otherwise fbdev will
not be created even after connector's appearance.
The patch fixes lack of fbdev on rinato and trats boards.

Fixes: 6afb7721e2a0 ("drm/exynos: move connector creation to attach callback")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Andrzej Hajda 6 years ago
parent
commit
989534cfca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/exynos/exynos_drm_fbdev.c

+ 1 - 1
drivers/gpu/drm/exynos/exynos_drm_fbdev.c

@@ -192,7 +192,7 @@ int exynos_drm_fbdev_init(struct drm_device *dev)
 	struct drm_fb_helper *helper;
 	struct drm_fb_helper *helper;
 	int ret;
 	int ret;
 
 
-	if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector)
+	if (!dev->mode_config.num_crtc)
 		return 0;
 		return 0;
 
 
 	fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL);
 	fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL);