Commit 5cd29ed0 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Don't register backlight on connector_destroy

Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 742811b7
...@@ -2713,15 +2713,11 @@ static void amdgpu_dm_connector_destroy(struct drm_connector *connector) ...@@ -2713,15 +2713,11 @@ static void amdgpu_dm_connector_destroy(struct drm_connector *connector)
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE) defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
if ((link->connector_signal & (SIGNAL_TYPE_EDP | SIGNAL_TYPE_LVDS)) && if ((link->connector_signal & (SIGNAL_TYPE_EDP | SIGNAL_TYPE_LVDS)) &&
link->type != dc_connection_none) { link->type != dc_connection_none &&
amdgpu_dm_register_backlight_device(dm); dm->backlight_dev) {
if (dm->backlight_dev) {
backlight_device_unregister(dm->backlight_dev); backlight_device_unregister(dm->backlight_dev);
dm->backlight_dev = NULL; dm->backlight_dev = NULL;
} }
}
#endif #endif
drm_connector_unregister(connector); drm_connector_unregister(connector);
drm_connector_cleanup(connector); drm_connector_cleanup(connector);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment