From: Daniel Vetter Date: Mon, 9 Apr 2018 08:51:34 +0000 (+0200) Subject: drm/xen-front: use simple display pipe prepare_fb helper X-Git-Tag: v4.18-rc1~128^2~21^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd388ee1ecbb8c1a9376f02ac0be573af9db5703;p=thirdparty%2Flinux.git drm/xen-front: use simple display pipe prepare_fb helper I missed this one because on an older tree. Signed-off-by: Daniel Vetter Cc: Oleksandr Andrushchenko Cc: xen-devel@lists.xen.org Reviewed-by: Oleksandr Andrushchenko Link: https://patchwork.freedesktop.org/patch/msgid/20180409085134.27321-1-daniel.vetter@ffwll.ch --- diff --git a/drivers/gpu/drm/xen/xen_drm_front_kms.c b/drivers/gpu/drm/xen/xen_drm_front_kms.c index 0bd6681fa4f3c..a3479eb72d794 100644 --- a/drivers/gpu/drm/xen/xen_drm_front_kms.c +++ b/drivers/gpu/drm/xen/xen_drm_front_kms.c @@ -226,12 +226,6 @@ static bool display_send_page_flip(struct drm_simple_display_pipe *pipe, return false; } -static int display_prepare_fb(struct drm_simple_display_pipe *pipe, - struct drm_plane_state *plane_state) -{ - return drm_gem_fb_prepare_fb(&pipe->plane, plane_state); -} - static void display_update(struct drm_simple_display_pipe *pipe, struct drm_plane_state *old_plane_state) { @@ -294,7 +288,7 @@ static const struct drm_simple_display_pipe_funcs display_funcs = { .mode_valid = display_mode_valid, .enable = display_enable, .disable = display_disable, - .prepare_fb = display_prepare_fb, + .prepare_fb = drm_gem_fb_simple_display_pipe_prepare_fb, .update = display_update, };