Commit 40dc962d authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 1f39b1df
...@@ -1267,9 +1267,9 @@ static struct drm_plane *tegra_dc_add_planes(struct drm_device *drm, ...@@ -1267,9 +1267,9 @@ static struct drm_plane *tegra_dc_add_planes(struct drm_device *drm,
err = PTR_ERR(planes[i]); err = PTR_ERR(planes[i]);
while (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); return ERR_PTR(err);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment