drm/tegra: Remove redundant zeroing out of memory
The DRM core now zeroes out the memory associated with CRTC, encoder and connector objects upon cleanup, so there's no need to explicitly do that in drivers anymore. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
8c8cb58ed6
commit
aa942f6ac4
2 changed files with 0 additions and 18 deletions
|
@ -895,15 +895,9 @@ static int tegra_dc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void drm_crtc_clear(struct drm_crtc *crtc)
|
||||
{
|
||||
memset(crtc, 0, sizeof(*crtc));
|
||||
}
|
||||
|
||||
static void tegra_dc_destroy(struct drm_crtc *crtc)
|
||||
{
|
||||
drm_crtc_cleanup(crtc);
|
||||
drm_crtc_clear(crtc);
|
||||
}
|
||||
|
||||
static const struct drm_crtc_funcs tegra_crtc_funcs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue