]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61218c19b85e3fbf6e8fa3db6819d32f53c0480c
tree19ef3050d451e01237e2649ecadbffc96ff7bb60
parent66612a2061475483c0416fe8a22988552f52e034
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