mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 05:56:08 +07:00
drm/amd/display: Don't register backlight on connector_destroy
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
742811b712
commit
5cd29ed0cb
@ -2713,14 +2713,10 @@ static void amdgpu_dm_connector_destroy(struct drm_connector *connector)
|
||||
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
|
||||
|
||||
if ((link->connector_signal & (SIGNAL_TYPE_EDP | SIGNAL_TYPE_LVDS)) &&
|
||||
link->type != dc_connection_none) {
|
||||
amdgpu_dm_register_backlight_device(dm);
|
||||
|
||||
if (dm->backlight_dev) {
|
||||
backlight_device_unregister(dm->backlight_dev);
|
||||
dm->backlight_dev = NULL;
|
||||
}
|
||||
|
||||
link->type != dc_connection_none &&
|
||||
dm->backlight_dev) {
|
||||
backlight_device_unregister(dm->backlight_dev);
|
||||
dm->backlight_dev = NULL;
|
||||
}
|
||||
#endif
|
||||
drm_connector_unregister(connector);
|
||||
|
Loading…
Reference in New Issue
Block a user