drm/amd/powerplay:clean up the residual mutex for smu_hw_init

Submitted by Liang, Prike on June 24, 2019, 9:38 a.m.

Details

Message ID 1561369088-28220-1-git-send-email-Prike.Liang@amd.com
State Accepted
Commit 1189413f9cd45e42dc8ce3dc4eacd6ae27269ef9
Headers show
Series "drm/amd/powerplay:clean up the residual mutex for smu_hw_init" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Liang, Prike June 24, 2019, 9:38 a.m.
Change-Id: I1f071e465c97f70048df5b24466bc7e225833c7f
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index edd1da6..0be2845 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1041,7 +1041,6 @@  static int smu_hw_init(void *handle)
 	return 0;
 
 failed:
-	mutex_unlock(&smu->mutex);
 	return ret;
 }
 

Comments

With the patch header updated, the patch is Reviewed-by: Evan Quan <evan.quan@amd.com>

> -----Original Message-----

> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of

> Prike Liang

> Sent: Monday, June 24, 2019 5:38 PM

> To: amd-gfx@lists.freedesktop.org

> Cc: Liang, Prike <Prike.Liang@amd.com>; Huang, Ray

> <Ray.Huang@amd.com>; Feng, Kenneth <Kenneth.Feng@amd.com>; Quan,

> Evan <Evan.Quan@amd.com>

> Subject: [PATCH] drm/amd/powerplay:clean up the residual mutex for

> smu_hw_init

> 

> Change-Id: I1f071e465c97f70048df5b24466bc7e225833c7f

> Signed-off-by: Prike Liang <Prike.Liang@amd.com>

> ---

>  drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

> b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

> index edd1da6..0be2845 100644

> --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

> +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

> @@ -1041,7 +1041,6 @@ static int smu_hw_init(void *handle)

>  	return 0;

> 

>  failed:

> -	mutex_unlock(&smu->mutex);

>  	return ret;

>  }

> 

> --

> 2.7.4

> 

> _______________________________________________

> amd-gfx mailing list

> amd-gfx@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx