diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-08-14 12:53:38 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-24 01:38:31 +0200 |
commit | 22f5d115a2b087c977128f84ee557ad71530330e (patch) | |
tree | 19ef3050d451e01237e2649ecadbffc96ff7bb60 /include/drm | |
parent | Linux 3.6-rc3 (diff) | |
download | linux-22f5d115a2b087c977128f84ee557ad71530330e.tar.xz linux-22f5d115a2b087c977128f84ee557ad71530330e.zip |
drm: Initialize object type when using DRM_MODE() macro
DRM_MODE() macro doesn't initialize the type of the base drm object.
When a copy is made of the mode, the object type is overwritten with
zero, and the the object can no longer be found by
drm_mode_object_find() due to the type check failing.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ced362533e3c..bfacf0d5a225 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -118,7 +118,8 @@ enum drm_mode_status { .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ - .vscan = (vs), .flags = (f), .vrefresh = 0 + .vscan = (vs), .flags = (f), .vrefresh = 0, \ + .base.type = DRM_MODE_OBJECT_MODE #define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */ |