diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-09 14:08:24 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-12-16 14:07:06 +0100 |
commit | 40dc962dfb9ebb389c9853b0198d52bcf629986b (patch) | |
tree | b91b1f8eae0d03ab3681cd18a1de84009bfb7649 /drivers/gpu/drm/tegra/dc.c | |
parent | drm/tegra: Implement buffer object cache (diff) | |
download | linux-40dc962dfb9ebb389c9853b0198d52bcf629986b.tar.xz linux-40dc962dfb9ebb389c9853b0198d52bcf629986b.zip |
drm/tegra: Do not reference tegra_plane_funcs directly
Instead of referencing the tegra_plane_funcs struct directly, use each
plane's vtable instead. This makes it more future-proof in case any of
the planes ever use a different set of functions.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a29d64f87563..a73fd6abc9a6 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -1267,9 +1267,9 @@ static struct drm_plane *tegra_dc_add_planes(struct drm_device *drm, err = PTR_ERR(planes[i]); while (i--) - tegra_plane_funcs.destroy(planes[i]); + planes[i]->funcs->destroy(planes[i]); - tegra_plane_funcs.destroy(primary); + primary->funcs->destroy(primary); return ERR_PTR(err); } } |