|
@@ -230,10 +230,12 @@ int vc4_kms_load(struct drm_device *dev)
|
|
|
|
|
|
drm_mode_config_reset(dev);
|
|
|
|
|
|
- vc4->fbdev = drm_fbdev_cma_init(dev, 32,
|
|
|
- dev->mode_config.num_connector);
|
|
|
- if (IS_ERR(vc4->fbdev))
|
|
|
- vc4->fbdev = NULL;
|
|
|
+ if (dev->mode_config.num_connector) {
|
|
|
+ vc4->fbdev = drm_fbdev_cma_init(dev, 32,
|
|
|
+ dev->mode_config.num_connector);
|
|
|
+ if (IS_ERR(vc4->fbdev))
|
|
|
+ vc4->fbdev = NULL;
|
|
|
+ }
|
|
|
|
|
|
drm_kms_helper_poll_init(dev);
|
|
|
|