aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi/hdmi_bridge.c')
-rw-r--r--drivers/gpu/drm/msm/hdmi/hdmi_bridge.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c
index 6902ad6da710..d6f8d5818e18 100644
--- a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c
+++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c
@@ -23,10 +23,9 @@ struct hdmi_bridge {
23}; 23};
24#define to_hdmi_bridge(x) container_of(x, struct hdmi_bridge, base) 24#define to_hdmi_bridge(x) container_of(x, struct hdmi_bridge, base)
25 25
26static void hdmi_bridge_destroy(struct drm_bridge *bridge) 26void hdmi_bridge_destroy(struct drm_bridge *bridge)
27{ 27{
28 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); 28 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge);
29 drm_bridge_cleanup(bridge);
30 kfree(hdmi_bridge); 29 kfree(hdmi_bridge);
31} 30}
32 31
@@ -200,7 +199,6 @@ static const struct drm_bridge_funcs hdmi_bridge_funcs = {
200 .disable = hdmi_bridge_disable, 199 .disable = hdmi_bridge_disable,
201 .post_disable = hdmi_bridge_post_disable, 200 .post_disable = hdmi_bridge_post_disable,
202 .mode_set = hdmi_bridge_mode_set, 201 .mode_set = hdmi_bridge_mode_set,
203 .destroy = hdmi_bridge_destroy,
204}; 202};
205 203
206 204
@@ -220,8 +218,9 @@ struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi)
220 hdmi_bridge->hdmi = hdmi; 218 hdmi_bridge->hdmi = hdmi;
221 219
222 bridge = &hdmi_bridge->base; 220 bridge = &hdmi_bridge->base;
221 bridge->funcs = &hdmi_bridge_funcs;
223 222
224 drm_bridge_init(hdmi->dev, bridge, &hdmi_bridge_funcs); 223 drm_bridge_attach(hdmi->dev, bridge);
225 224
226 return bridge; 225 return bridge;
227 226