|
@@ -2692,6 +2692,7 @@ static void amdgpu_dm_connector_destroy(struct drm_connector *connector)
|
|
const struct dc_link *link = aconnector->dc_link;
|
|
const struct dc_link *link = aconnector->dc_link;
|
|
struct amdgpu_device *adev = connector->dev->dev_private;
|
|
struct amdgpu_device *adev = connector->dev->dev_private;
|
|
struct amdgpu_display_manager *dm = &adev->dm;
|
|
struct amdgpu_display_manager *dm = &adev->dm;
|
|
|
|
+
|
|
#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) ||\
|
|
#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) ||\
|
|
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
|
|
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
|
|
|
|
|
|
@@ -4649,7 +4650,7 @@ static int dm_update_crtcs_state(struct dc *dc,
|
|
if (aconnector && enable) {
|
|
if (aconnector && enable) {
|
|
// Make sure fake sink is created in plug-in scenario
|
|
// Make sure fake sink is created in plug-in scenario
|
|
new_con_state = drm_atomic_get_connector_state(state,
|
|
new_con_state = drm_atomic_get_connector_state(state,
|
|
- &aconnector->base);
|
|
|
|
|
|
+ &aconnector->base);
|
|
|
|
|
|
if (IS_ERR(new_con_state)) {
|
|
if (IS_ERR(new_con_state)) {
|
|
ret = PTR_ERR_OR_ZERO(new_con_state);
|
|
ret = PTR_ERR_OR_ZERO(new_con_state);
|