summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-05-30 12:24:19 +1000
committerDave Airlie <airlied@redhat.com>2008-05-30 12:24:30 +1000
commit1542492b797fbdf4970e0213827e2f9887d6174d (patch)
treee0d556072555955567fa1a08f7f88a4421b0d41a /linux-core
parent6b5592790dcaed503bec8f441eab52d22b76d7c1 (diff)
drm: init the encoder list/count
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 734850f3..f6937f44 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -708,6 +708,7 @@ void drm_mode_config_init(struct drm_device *dev)
INIT_LIST_HEAD(&dev->mode_config.fb_list);
INIT_LIST_HEAD(&dev->mode_config.crtc_list);
INIT_LIST_HEAD(&dev->mode_config.output_list);
+ INIT_LIST_HEAD(&dev->mode_config.encoder_list);
INIT_LIST_HEAD(&dev->mode_config.property_list);
INIT_LIST_HEAD(&dev->mode_config.property_blob_list);
idr_init(&dev->mode_config.crtc_idr);
@@ -718,6 +719,7 @@ void drm_mode_config_init(struct drm_device *dev)
dev->mode_config.num_fb = 0;
dev->mode_config.num_output = 0;
dev->mode_config.num_crtc = 0;
+ dev->mode_config.num_encoder = 0;
dev->mode_config.hotplug_counter = 0;
}
EXPORT_SYMBOL(drm_mode_config_init);