drm: Initialize object type when using DRM_MODE() macro
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Aug 2012 10:53:38 +0000 (10:53 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Aug 2012 23:38:31 +0000 (09:38 +1000)
commit22f5d115a2b087c977128f84ee557ad71530330e
tree19ef3050d451e01237e2649ecadbffc96ff7bb60
parentfea7a08acb13524b47711625eebea40a0ede69a0
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>
include/drm/drm_crtc.h