summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/dc.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-12-10 13:41:05 +0300
committerThierry Reding <treding@nvidia.com>2015-01-27 12:14:34 +0300
commitaa942f6ac43ab7373a025fe54780c8a852f33348 (patch)
tree8692b97fedab76decec425ad944cc7e164876513 /drivers/gpu/drm/tegra/dc.c
parent8c8cb58ed6429da3cd41c1b44770c7a4b1b33933 (diff)
downloadlinux-aa942f6ac43ab7373a025fe54780c8a852f33348.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r--drivers/gpu/drm/tegra/dc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index ae26cc054fff..3a8a7c227051 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -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 = {