diff options
author | Hamza Mahfooz <hamza.mahfooz@amd.com> | 2023-01-17 15:12:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-18 23:20:16 -0500 |
commit | e433adc60f7f847e734c56246b09291532f29b6d (patch) | |
tree | 1f6bc1555f7325dfb9a8c8c2bffe39aa6c7175aa /drivers/mfd/rt4831.c | |
parent | 74ea8e78ab349514c9f4df0be1189d91267d750d (diff) | |
download | linux-e433adc60f7f847e734c56246b09291532f29b6d.tar.bz2 |
drm/amd/display: fix issues with driver unload
Currently, we run into a number of WARN()s when attempting to unload the
amdgpu driver (e.g. using "modprobe -r amdgpu"). These all stem from
calling drm_encoder_cleanup() too early. So, to fix this we can stop
calling drm_encoder_cleanup() from amdgpu_dm_fini() and instead have it
be called from amdgpu_dm_encoder_destroy(). Also, we don't need to free
in amdgpu_dm_encoder_destroy() since mst_encoders[] isn't explicitly
allocated by the slab allocator.
Fixes: f74367e492ba ("drm/amdgpu/display: create fake mst encoders ahead of time (v4)")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/mfd/rt4831.c')
0 files changed, 0 insertions, 0 deletions