|
@@ -2009,7 +2009,6 @@ static void intel_sdvo_destroy(struct drm_connector *connector)
|
|
|
intel_sdvo_connector->tv_format);
|
|
|
|
|
|
intel_sdvo_destroy_enhance_property(connector);
|
|
|
- drm_sysfs_connector_remove(connector);
|
|
|
drm_connector_cleanup(connector);
|
|
|
kfree(intel_sdvo_connector);
|
|
|
}
|
|
@@ -2482,6 +2481,7 @@ intel_sdvo_tv_init(struct intel_sdvo *intel_sdvo, int type)
|
|
|
return true;
|
|
|
|
|
|
err:
|
|
|
+ drm_sysfs_connector_remove(connector);
|
|
|
intel_sdvo_destroy(connector);
|
|
|
return false;
|
|
|
}
|
|
@@ -2553,6 +2553,7 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)
|
|
|
return true;
|
|
|
|
|
|
err:
|
|
|
+ drm_sysfs_connector_remove(connector);
|
|
|
intel_sdvo_destroy(connector);
|
|
|
return false;
|
|
|
}
|
|
@@ -2624,8 +2625,10 @@ static void intel_sdvo_output_cleanup(struct intel_sdvo *intel_sdvo)
|
|
|
|
|
|
list_for_each_entry_safe(connector, tmp,
|
|
|
&dev->mode_config.connector_list, head) {
|
|
|
- if (intel_attached_encoder(connector) == &intel_sdvo->base)
|
|
|
+ if (intel_attached_encoder(connector) == &intel_sdvo->base) {
|
|
|
+ drm_sysfs_connector_remove(connector);
|
|
|
intel_sdvo_destroy(connector);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|