Revert "drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init()"
authorMa Jun <Jun.Ma2@amd.com>
Tue, 19 Mar 2024 07:24:03 +0000 (15:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:59 +0000 (13:12 -0400)
commit03c6284df179de3a4a6e0684764b1c71d2a405e2
tree66450b4445414db20810a03133e8abf084e10822
parent334b56cea5d9df5989be6cf1a5898114fa70ad98
Revert "drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init()"

This patch causes the following iounmap erorr and calltrace
iounmap: bad address 00000000d0b3631f

The original patch was unjustified because amdgpu_device_fini_sw() will
always cleanup the rmmio mapping.

This reverts commit eb4f139888f636614dab3bcce97ff61cefc4b3a7.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c