struct dw_hdmi {
struct drm_connector connector;
struct drm_bridge bridge;
- struct drm_bridge *next_bridge;
unsigned int version;
struct dw_hdmi *hdmi = bridge->driver_private;
if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)
- return drm_bridge_attach(encoder, hdmi->next_bridge,
+ return drm_bridge_attach(encoder, hdmi->bridge.next_bridge,
bridge, flags);
return dw_hdmi_connector_create(hdmi);
if (!remote)
return -ENODEV;
- hdmi->next_bridge = of_drm_find_bridge(remote);
+ hdmi->bridge.next_bridge = of_drm_find_and_get_bridge(remote);
of_node_put(remote);
- if (!hdmi->next_bridge)
+ if (!hdmi->bridge.next_bridge)
return -EPROBE_DEFER;
return 0;