diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-08-14 14:53:38 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-24 03:38:31 +0400 |
commit | 22f5d115a2b087c977128f84ee557ad71530330e (patch) | |
tree | 19ef3050d451e01237e2649ecadbffc96ff7bb60 /include | |
parent | fea7a08acb13524b47711625eebea40a0ede69a0 (diff) | |
download | linux-22f5d115a2b087c977128f84ee557ad71530330e.tar.xz |
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')
-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 */ |