summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/omapdrm/omap_plane.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-09-26 19:30:51 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-10-21 19:24:42 +0300
commit18391ec0bb4a1ea1ba2b485b8b29ac536d52fa5b (patch)
tree428b04b93ef388dd8f7c5d0996d3636cb7841866 /drivers/gpu/drm/omapdrm/omap_plane.c
parent9fe58f017b54e4d3457479c258d7a8466fc1655e (diff)
downloadlinux-18391ec0bb4a1ea1ba2b485b8b29ac536d52fa5b.tar.xz
drm/omap: Set rotation property initial value to BIT(DRM_ROTATE_0) insted of 0
0 isn't a valid rotation property value, so let's set the initial value of the property to BIT(DRM_ROTATE_0) instead. v2: Drop the BIT() Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Rob Clark <robdclark@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1474907460-10717-7-git-send-email-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_plane.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_plane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c
index 1549e8393056..6ddaa5ea4b6b 100644
--- a/drivers/gpu/drm/omapdrm/omap_plane.c
+++ b/drivers/gpu/drm/omapdrm/omap_plane.c
@@ -213,7 +213,7 @@ void omap_plane_install_properties(struct drm_plane *plane,
if (priv->has_dmm) {
struct drm_property *prop = dev->mode_config.rotation_property;
- drm_object_attach_property(obj, prop, 0);
+ drm_object_attach_property(obj, prop, DRM_ROTATE_0);
}
drm_object_attach_property(obj, priv->zorder_prop, 0);