|
@@ -2206,12 +2206,6 @@ void intel_ddi_get_config(struct intel_encoder *encoder,
|
|
|
intel_ddi_clock_get(encoder, pipe_config);
|
|
|
}
|
|
|
|
|
|
-static void intel_ddi_destroy(struct drm_encoder *encoder)
|
|
|
-{
|
|
|
- /* HDMI has nothing special to destroy, so we can go with this. */
|
|
|
- intel_dp_encoder_destroy(encoder);
|
|
|
-}
|
|
|
-
|
|
|
static bool intel_ddi_compute_config(struct intel_encoder *encoder,
|
|
|
struct intel_crtc_state *pipe_config)
|
|
|
{
|
|
@@ -2230,7 +2224,8 @@ static bool intel_ddi_compute_config(struct intel_encoder *encoder,
|
|
|
}
|
|
|
|
|
|
static const struct drm_encoder_funcs intel_ddi_funcs = {
|
|
|
- .destroy = intel_ddi_destroy,
|
|
|
+ .reset = intel_dp_encoder_reset,
|
|
|
+ .destroy = intel_dp_encoder_destroy,
|
|
|
};
|
|
|
|
|
|
static struct intel_connector *
|
|
@@ -2329,6 +2324,7 @@ void intel_ddi_init(struct drm_device *dev, enum port port)
|
|
|
intel_encoder->post_disable = intel_ddi_post_disable;
|
|
|
intel_encoder->get_hw_state = intel_ddi_get_hw_state;
|
|
|
intel_encoder->get_config = intel_ddi_get_config;
|
|
|
+ intel_encoder->suspend = intel_dp_encoder_suspend;
|
|
|
|
|
|
intel_dig_port->port = port;
|
|
|
intel_dig_port->saved_port_bits = I915_READ(DDI_BUF_CTL(port)) &
|