aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/hdmi/hdmi_connector.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2014-11-18 08:40:44 -0500
committerRob Clark <robdclark@gmail.com>2014-11-21 08:56:19 -0500
commitd1a717bd2719d6416fdc5e9b65786f17c6c3facb (patch)
tree33ef2ed0b6794fad6ca384fee75202b796a88d81 /drivers/gpu/drm/msm/hdmi/hdmi_connector.c
parentdrm/msm/mdp5: get the core clock rate from MDP5 config (diff)
downloadlinux-dev-d1a717bd2719d6416fdc5e9b65786f17c6c3facb.tar.xz
linux-dev-d1a717bd2719d6416fdc5e9b65786f17c6c3facb.zip
drm/msm/hdmi: remove useless kref
A left-over from prior to component framework. The original intent was to deal with hdmi getting unloaded before the master component, but that isn't really going to work anyways. These days with the component framework taking care to unload the master component first, we don't have to worry about this. Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/msm/hdmi/hdmi_connector.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c
index 0aecb2580072..fbebb0405d76 100644
--- a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c
+++ b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c
@@ -330,8 +330,6 @@ static void hdmi_connector_destroy(struct drm_connector *connector)
drm_connector_unregister(connector);
drm_connector_cleanup(connector);
- hdmi_unreference(hdmi_connector->hdmi);
-
kfree(hdmi_connector);
}
@@ -425,7 +423,7 @@ struct drm_connector *hdmi_connector_init(struct hdmi *hdmi)
goto fail;
}
- hdmi_connector->hdmi = hdmi_reference(hdmi);
+ hdmi_connector->hdmi = hdmi;
INIT_WORK(&hdmi_connector->hpd_work, hotplug_work);
connector = &hdmi_connector->base;