]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdxcp: fix amdxcp unloads incompletely
authorJames Zhu <James.Zhu@amd.com>
Thu, 7 Sep 2023 14:41:00 +0000 (10:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 23:04:53 +0000 (19:04 -0400)
commite2ae32d8c2a303af58d22ee61b3b7aa7021e54c9
treefb53d3f5aca52c53268d60544cc890763d37b503
parentf0b8f65b482548c9d1d87c20fa4850c61305ff47
drm/amdxcp: fix amdxcp unloads incompletely

amdxcp unloads incompletely, and below error will be seen during load/unload,
sysfs: cannot create duplicate filename '/devices/platform/amdgpu_xcp.0'

devres_release_group will free xcp device at first, platform device will be
unregistered later in platform_device_unregister.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c