[Intel-gfx] [PATCH 19/37] drm/i915: Delete unused svdo hotplug functions.

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 10 23:45:06 CET 2010


Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/intel_drv.h  |    2 -
 drivers/gpu/drm/i915/intel_sdvo.c |   56 -------------------------------------
 2 files changed, 0 insertions(+), 58 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 990e01e..590f63c 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -198,8 +198,6 @@ extern void intel_release_load_detect_pipe(struct intel_output *intel_output,
 					   int dpms_mode);
 
 extern struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB);
-extern bool intel_sdvo_supports_hotplug(struct drm_connector *connector);
-extern int intel_sdvo_set_hotplug(struct drm_connector *connector, int enable);
 extern int intelfb_probe(struct drm_device *dev);
 extern int intelfb_remove(struct drm_device *dev, struct drm_framebuffer *fb);
 extern int intelfb_resize(struct drm_device *dev, struct drm_crtc *crtc);
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index dc94b4c..04293b5 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1480,62 +1480,6 @@ struct drm_connector* intel_sdvo_find(struct drm_device *dev, int sdvoB)
 	return NULL;
 }
 
-bool intel_sdvo_supports_hotplug(struct drm_connector *connector)
-{
-	u8 response[2];
-	u8 status;
-	struct intel_output *intel_output;
-	DRM_DEBUG_KMS("\n");
-
-	if (!connector)
-		return false;
-
-	intel_output = to_intel_output(connector);
-
-	status = SDVO_CMD_STATUS_READ_FAILED;
-	if (intel_sdvo_write_cmd(intel_output, SDVO_CMD_GET_HOT_PLUG_SUPPORT, NULL, 0))
-		status = intel_sdvo_read_response(intel_output, &response, 2);
-
-	if (status != SDVO_CMD_STATUS_SUCCESS)
-		return false;
-
-	return response[0] != 0;
-}
-
-int intel_sdvo_set_hotplug(struct drm_connector *connector, int on)
-{
-	u8 response[2];
-	u8 status;
-	struct intel_output *intel_output = to_intel_output(connector);
-
-	if (!intel_sdvo_supports_hotplug (connector))
-		return -ENODEV;
-
-	if (on) {
-		status = SDVO_CMD_STATUS_READ_FAILED;
-		if (intel_sdvo_write_cmd(intel_output, SDVO_CMD_GET_HOT_PLUG_SUPPORT, NULL, 0))
-			status = intel_sdvo_read_response(intel_output, &response, 2);
-		if (status != SDVO_CMD_STATUS_SUCCESS)
-			return -EIO;
-
-		if (!intel_sdvo_write_cmd(intel_output, SDVO_CMD_SET_ACTIVE_HOT_PLUG, &response, 2))
-			return -EIO;
-	} else {
-		response[0] = 0;
-		response[1] = 0;
-		if (!intel_sdvo_write_cmd(intel_output, SDVO_CMD_SET_ACTIVE_HOT_PLUG, &response, 2))
-			return -EIO;
-	}
-
-	status = SDVO_CMD_STATUS_READ_FAILED;
-	if (intel_sdvo_write_cmd(intel_output, SDVO_CMD_GET_ACTIVE_HOT_PLUG, NULL, 0))
-		status = intel_sdvo_read_response(intel_output, &response, 2);
-	if (status != SDVO_CMD_STATUS_SUCCESS)
-		return -EIO;
-
-	return 0;
-}
-
 static bool
 intel_sdvo_multifunc_encoder(struct intel_output *intel_output)
 {
-- 
1.7.0




More information about the Intel-gfx mailing list