summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/output.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-12-10 11:41:05 +0100
committerThierry Reding <treding@nvidia.com>2015-01-27 10:14:34 +0100
commitaa942f6ac43ab7373a025fe54780c8a852f33348 (patch)
tree8692b97fedab76decec425ad944cc7e164876513 /drivers/gpu/drm/tegra/output.c
parent8c8cb58ed6429da3cd41c1b44770c7a4b1b33933 (diff)
downloadlinux-aa942f6ac43ab7373a025fe54780c8a852f33348.tar.bz2
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/output.c')
-rw-r--r--drivers/gpu/drm/tegra/output.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index 6a5c7b81fbc5..0e4042ce904f 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -98,16 +98,10 @@ tegra_connector_detect(struct drm_connector *connector, bool force)
return status;
}
-static void drm_connector_clear(struct drm_connector *connector)
-{
- memset(connector, 0, sizeof(*connector));
-}
-
static void tegra_connector_destroy(struct drm_connector *connector)
{
drm_connector_unregister(connector);
drm_connector_cleanup(connector);
- drm_connector_clear(connector);
}
static const struct drm_connector_funcs connector_funcs = {
@@ -117,15 +111,9 @@ static const struct drm_connector_funcs connector_funcs = {
.destroy = tegra_connector_destroy,
};
-static void drm_encoder_clear(struct drm_encoder *encoder)
-{
- memset(encoder, 0, sizeof(*encoder));
-}
-
static void tegra_encoder_destroy(struct drm_encoder *encoder)
{
drm_encoder_cleanup(encoder);
- drm_encoder_clear(encoder);
}
static const struct drm_encoder_funcs encoder_funcs = {