@@ -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);
@@ -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)
{