c5c3bab555ea60e8c4674007ad9fdef18af4cd32
[openwrt/staging/stintel.git] /
1 From c7b252e6121b8c72d0e0540478658485eaeebe86 Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
3 Date: Wed, 17 Jan 2018 23:15:18 +0200
4 Subject: [PATCH] drm: vc4: Remove unnecessary drm_plane_cleanup()
5 wrapper
6
7 Use the drm_plane_cleanup() function directly as the drm_plane_funcs
8 .destroy() handler without creating an unnecessary wrapper around it.
9
10 Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
11 Acked-by: Maxime Ripard <mripard@kernel.org>
12 Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 ---
14 drivers/gpu/drm/vc4/vc4_plane.c | 7 +------
15 1 file changed, 1 insertion(+), 6 deletions(-)
16
17 --- a/drivers/gpu/drm/vc4/vc4_plane.c
18 +++ b/drivers/gpu/drm/vc4/vc4_plane.c
19 @@ -1363,11 +1363,6 @@ static const struct drm_plane_helper_fun
20 .atomic_async_update = vc4_plane_atomic_async_update,
21 };
22
23 -static void vc4_plane_destroy(struct drm_plane *plane)
24 -{
25 - drm_plane_cleanup(plane);
26 -}
27 -
28 static bool vc4_format_mod_supported(struct drm_plane *plane,
29 uint32_t format,
30 uint64_t modifier)
31 @@ -1425,7 +1420,7 @@ static bool vc4_format_mod_supported(str
32 static const struct drm_plane_funcs vc4_plane_funcs = {
33 .update_plane = drm_atomic_helper_update_plane,
34 .disable_plane = drm_atomic_helper_disable_plane,
35 - .destroy = vc4_plane_destroy,
36 + .destroy = drm_plane_cleanup,
37 .set_property = NULL,
38 .reset = vc4_plane_reset,
39 .atomic_duplicate_state = vc4_plane_duplicate_state,