drm/amdgpu: Clean up of initializing doorbells for gfx_v9 and gfx_v10
authorHaohui Mai <ricetons@gmail.com>
Mon, 16 May 2022 12:00:53 +0000 (05:00 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:31 +0000 (14:56 -0400)
commit2c2dd0555fd6bcea6d43ab3224c6af718b910e22
treeca675bc6acd215db83d0d033cf9f90652a517c2b
parentc51bdd1a9c34936c1a6b2f6eb79703c730cc0e6e
drm/amdgpu: Clean up of initializing doorbells for gfx_v9 and gfx_v10

Clean up redundant, copy-paste code blocks during the initialization of
the doorbells in mqd_init().

Signed-off-by: Haohui Mai <ricetons@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c