projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7201023
)
drm/amdgpu: use adev_to_drm to get drm device
author
Guchun Chen
<guchun.chen@amd.com>
Thu, 25 Aug 2022 07:44:46 +0000
(15:44 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:35:18 +0000
(13:35 -0400)
adev_to_drm is used everywhere in amdgpu code, so modify
it to keep consistency.
Signed-off-by: Guchun Chen <guchun.chen@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_ctx.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index
8ee4e84
..
6ea8980
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@
-402,7
+402,7
@@
static void amdgpu_ctx_fini(struct kref *ref)
}
}
- if (drm_dev_enter(
&adev->ddev
, &idx)) {
+ if (drm_dev_enter(
adev_to_drm(adev)
, &idx)) {
amdgpu_ctx_set_stable_pstate(ctx, ctx->stable_pstate);
drm_dev_exit(idx);
}