From: Chris Wilson Date: Wed, 25 Jan 2017 10:10:44 +0000 (+0000) Subject: drm/sti: Fix compilation failure for drm_framebuffer.pixel_format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5b2b6ebf34b20e70a2bdb5214c371744e7fa260;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/sti: Fix compilation failure for drm_framebuffer.pixel_format drivers/gpu/drm/sti/sti_plane.c:76:33: error: ‘struct drm_framebuffer’ has no member named ‘pixel_format’; did you mean ‘format’? I didn't look to hard at the casting to a char * and just did a mechanical transformation of s/pixel_format/format->format/ as given in commit 438b74a5497c ("drm: Nuke fb->pixel_format"). Fixes: 438b74a5497c ("drm: Nuke fb->pixel_format") Signed-off-by: Chris Wilson Cc: Ville Syrjälä Cc: Benjamin Gaignard Cc: Vincent Abriou Acked-by: Vincent Abriou Reviewed-by: Ville Syrjälä Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/sti/sti_plane.c b/drivers/gpu/drm/sti/sti_plane.c index 699094c559b4..427d8f58c6b1 100644 --- a/drivers/gpu/drm/sti/sti_plane.c +++ b/drivers/gpu/drm/sti/sti_plane.c @@ -73,7 +73,7 @@ void sti_plane_update_fps(struct sti_plane *plane, plane->drm_plane.name, plane->drm_plane.fb->width, plane->drm_plane.fb->height, - (char *)&plane->drm_plane.fb->pixel_format, + (char *)&plane->drm_plane.fb->format->format, fpks / 1000, fpks % 1000, sti_plane_to_str(plane)); }