projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e31a85
)
drm/amdgpu: use adev_to_drm to get drm_device pointer
author
Guchun Chen
<guchun.chen@amd.com>
Mon, 13 Dec 2021 04:06:30 +0000
(12:06 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 14 Dec 2021 21:09:24 +0000
(16:09 -0500)
Updated for consistency when accessing drm_device from amdgpu driver.
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4224be241338156c96c15fd6fc0da744b319d77a..f2c0bca61d4dca7025a0bf4a027017094ecf685a 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@
-5706,7
+5706,7
@@
void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev,
void amdgpu_device_halt(struct amdgpu_device *adev)
{
struct pci_dev *pdev = adev->pdev;
- struct drm_device *ddev =
&adev->ddev
;
+ struct drm_device *ddev =
adev_to_drm(adev)
;
drm_dev_unplug(ddev);