diff options
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0687-drm-vc4-Remove-unnecessary-drm_plane_cleanup-wrapper.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.10/950-0687-drm-vc4-Remove-unnecessary-drm_plane_cleanup-wrapper.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0687-drm-vc4-Remove-unnecessary-drm_plane_cleanup-wrapper.patch b/target/linux/bcm27xx/patches-5.10/950-0687-drm-vc4-Remove-unnecessary-drm_plane_cleanup-wrapper.patch new file mode 100644 index 0000000000..c5c3bab555 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0687-drm-vc4-Remove-unnecessary-drm_plane_cleanup-wrapper.patch @@ -0,0 +1,39 @@ +From c7b252e6121b8c72d0e0540478658485eaeebe86 Mon Sep 17 00:00:00 2001 +From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> +Date: Wed, 17 Jan 2018 23:15:18 +0200 +Subject: [PATCH] drm: vc4: Remove unnecessary drm_plane_cleanup() + wrapper + +Use the drm_plane_cleanup() function directly as the drm_plane_funcs +.destroy() handler without creating an unnecessary wrapper around it. + +Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> +Acked-by: Maxime Ripard <mripard@kernel.org> +Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> +--- + drivers/gpu/drm/vc4/vc4_plane.c | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +--- a/drivers/gpu/drm/vc4/vc4_plane.c ++++ b/drivers/gpu/drm/vc4/vc4_plane.c +@@ -1363,11 +1363,6 @@ static const struct drm_plane_helper_fun + .atomic_async_update = vc4_plane_atomic_async_update, + }; + +-static void vc4_plane_destroy(struct drm_plane *plane) +-{ +- drm_plane_cleanup(plane); +-} +- + static bool vc4_format_mod_supported(struct drm_plane *plane, + uint32_t format, + uint64_t modifier) +@@ -1425,7 +1420,7 @@ static bool vc4_format_mod_supported(str + static const struct drm_plane_funcs vc4_plane_funcs = { + .update_plane = drm_atomic_helper_update_plane, + .disable_plane = drm_atomic_helper_disable_plane, +- .destroy = vc4_plane_destroy, ++ .destroy = drm_plane_cleanup, + .set_property = NULL, + .reset = vc4_plane_reset, + .atomic_duplicate_state = vc4_plane_duplicate_state, |