summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_atomic.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2016-08-15 16:29:55 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-08-16 14:06:53 +0200
commitd3828147079551189e1350c6676cd961de904cf2 (patch)
tree2014ff02800e6a6b3a01776e6c1e032a3079e645 /drivers/gpu/drm/drm_atomic.c
parentb0f566838cfe086a96bffd9c67dd8844a41870ea (diff)
downloadtalos-obmc-linux-d3828147079551189e1350c6676cd961de904cf2.tar.gz
talos-obmc-linux-d3828147079551189e1350c6676cd961de904cf2.zip
drm: remove `const` attribute to hint at caller that they now own the memory
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_atomic.c')
-rw-r--r--drivers/gpu/drm/drm_atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 087391f08a69..5cb2e22d5d55 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -837,7 +837,7 @@ static int drm_atomic_plane_check(struct drm_plane *plane,
/* Check whether this plane supports the fb pixel format. */
ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format);
if (ret) {
- const char *format_name = drm_get_format_name(state->fb->pixel_format);
+ char *format_name = drm_get_format_name(state->fb->pixel_format);
DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", format_name);
kfree(format_name);
return ret;
OpenPOWER on IntegriCloud