|
@@ -85,10 +85,8 @@ static void radeon_hotplug_work_func(struct work_struct *work)
|
|
|
return;
|
|
|
|
|
|
mutex_lock(&mode_config->mutex);
|
|
|
- if (mode_config->num_connector) {
|
|
|
- list_for_each_entry(connector, &mode_config->connector_list, head)
|
|
|
- radeon_connector_hotplug(connector);
|
|
|
- }
|
|
|
+ list_for_each_entry(connector, &mode_config->connector_list, head)
|
|
|
+ radeon_connector_hotplug(connector);
|
|
|
mutex_unlock(&mode_config->mutex);
|
|
|
/* Just fire off a uevent and let userspace tell us what to do */
|
|
|
drm_helper_hpd_irq_event(dev);
|
|
@@ -103,10 +101,8 @@ static void radeon_dp_work_func(struct work_struct *work)
|
|
|
struct drm_connector *connector;
|
|
|
|
|
|
/* this should take a mutex */
|
|
|
- if (mode_config->num_connector) {
|
|
|
- list_for_each_entry(connector, &mode_config->connector_list, head)
|
|
|
- radeon_connector_hotplug(connector);
|
|
|
- }
|
|
|
+ list_for_each_entry(connector, &mode_config->connector_list, head)
|
|
|
+ radeon_connector_hotplug(connector);
|
|
|
}
|
|
|
/**
|
|
|
* radeon_driver_irq_preinstall_kms - drm irq preinstall callback
|