drm/amd/powerplay: fix locking in smu_feature_set_supported()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 May 2019 09:51:30 +0000 (12:51 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:56:05 +0000 (12:56 -0500)
commit029f41535ac5e07e1fa17ca963a9f9fd05fb665f
tree994b5e25e9c3c4e790728b9f266ea60758feb543
parent067e75b3d786b6bd7863e86f9a8025284be87ac8
drm/amd/powerplay: fix locking in smu_feature_set_supported()

There is a typo so the code unlocks twice instead of taking the lock and
then releasing it.

Fixes: f14a323db5b0 ("drm/amd/powerplay: implement update enabled feature state to smc for smu11")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c