mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
8299d1f057
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
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,
|