[PATCH 06/10] drm/i915/dp: Enable lid notifier for eDP

Chris Wilson
2011-04-22T09:19:32Z

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_dp.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 0daefca..3ef944f 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -60,6 +60,8 @@ struct intel_dp {
uint8_t train_set[4];
uint8_t link_status[DP_LINK_STATUS_SIZE];

+ struct intel_panel panel; /* only for eDP! */
+
struct drm_property *force_audio_property;
};

@@ -1743,6 +1745,8 @@ static void intel_dp_encoder_destroy(struct drm_encoder *encoder)
{
struct intel_dp *intel_dp = enc_to_intel_dp(encoder);

+ intel_panel_fini(&intel_dp->panel);
+
i2c_del_adapter(&intel_dp->adapter);
drm_encoder_cleanup(encoder);
kfree(intel_dp);
@@ -1976,6 +1980,8 @@ intel_dp_init(struct drm_device *dev, int output_reg)
DRM_MODE_TYPE_PREFERRED;
}
}
+
+ intel_panel_init(&intel_dp->panel, intel_connector);
}

intel_dp_add_properties(intel_dp, connector);
--
1.7.4.1