drm/tegra: dc: Remove tegra_overlay_plane_destroy()
authorThierry Reding <treding@nvidia.com>
Wed, 30 Aug 2017 16:02:51 +0000 (18:02 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 12:42:21 +0000 (13:42 +0100)
This function is a simple wrapper around tegra_plane_destroy(), so it
can be dropped.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c

index a3f2924824dc64cb25916d11897e7641d89ba90a..e60f44a186bb13eebe563df20ca495b7979c5424 100644 (file)
@@ -825,15 +825,10 @@ static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm,
        return &plane->base;
 }
 
-static void tegra_overlay_plane_destroy(struct drm_plane *plane)
-{
-       tegra_plane_destroy(plane);
-}
-
 static const struct drm_plane_funcs tegra_overlay_plane_funcs = {
        .update_plane = drm_atomic_helper_update_plane,
        .disable_plane = drm_atomic_helper_disable_plane,
-       .destroy = tegra_overlay_plane_destroy,
+       .destroy = tegra_plane_destroy,
        .reset = tegra_plane_reset,
        .atomic_duplicate_state = tegra_plane_atomic_duplicate_state,
        .atomic_destroy_state = tegra_plane_atomic_destroy_state,