drm: remove sysfs in driver for now.. should probably be in helper
parent
fd27591c6c
commit
58aca7485a
|
@ -643,7 +643,6 @@ void drm_mode_config_cleanup(struct drm_device *dev)
|
|||
}
|
||||
|
||||
list_for_each_entry_safe(connector, ot, &dev->mode_config.connector_list, head) {
|
||||
drm_sysfs_connector_remove(connector);
|
||||
connector->funcs->destroy(connector);
|
||||
}
|
||||
|
||||
|
@ -662,8 +661,6 @@ void drm_mode_config_cleanup(struct drm_device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL(drm_mode_config_cleanup);
|
||||
|
||||
|
||||
|
||||
int drm_mode_hotplug_ioctl(struct drm_device *dev,
|
||||
void *data, struct drm_file *file_priv)
|
||||
{
|
||||
|
|
|
@ -199,6 +199,7 @@ static void intel_crt_destroy(struct drm_connector *connector)
|
|||
struct intel_output *intel_output = to_intel_output(connector);
|
||||
|
||||
intel_i2c_destroy(intel_output->ddc_bus);
|
||||
drm_sysfs_connector_remove(connector);
|
||||
drm_connector_cleanup(connector);
|
||||
kfree(connector);
|
||||
}
|
||||
|
|
|
@ -306,6 +306,7 @@ static void intel_dvo_destroy (struct drm_connector *connector)
|
|||
intel_i2c_destroy(intel_output->i2c_bus);
|
||||
if (intel_output->ddc_bus)
|
||||
intel_i2c_destroy(intel_output->ddc_bus);
|
||||
drm_sysfs_connector_remove(connector);
|
||||
drm_connector_cleanup(connector);
|
||||
kfree(intel_output);
|
||||
}
|
||||
|
|
|
@ -330,6 +330,7 @@ static void intel_lvds_destroy(struct drm_connector *connector)
|
|||
struct intel_output *intel_output = to_intel_output(connector);
|
||||
|
||||
intel_i2c_destroy(intel_output->ddc_bus);
|
||||
drm_sysfs_connector_remove(connector);
|
||||
drm_connector_cleanup(connector);
|
||||
kfree(connector);
|
||||
}
|
||||
|
|
|
@ -966,7 +966,7 @@ static void intel_sdvo_destroy(struct drm_connector *connector)
|
|||
|
||||
if (intel_output->i2c_bus)
|
||||
intel_i2c_destroy(intel_output->i2c_bus);
|
||||
|
||||
drm_sysfs_connector_remove(connector);
|
||||
drm_connector_cleanup(connector);
|
||||
kfree(intel_output);
|
||||
}
|
||||
|
|
|
@ -1553,6 +1553,7 @@ intel_tv_destroy (struct drm_connector *connector)
|
|||
{
|
||||
struct intel_output *intel_output = to_intel_output(connector);
|
||||
|
||||
drm_sysfs_connector_remove(connector);
|
||||
drm_connector_cleanup(connector);
|
||||
drm_free(intel_output, sizeof(struct intel_output) + sizeof(struct intel_tv_priv),
|
||||
DRM_MEM_DRIVER);
|
||||
|
|
Loading…
Reference in New Issue