diff options
| author | Wu Hoi Pok <[email protected]> | 2024-06-30 16:59:22 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-23 21:31:59 +0000 |
| commit | a9ed2f052c5c14e4be58c5ec8794dffc87588123 (patch) | |
| tree | 29fc5570003c01d4423612fa966a7e702b355862 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/radeon: change rdev->ddev to rdev_to_drm(rdev) (diff) | |
| download | kernel-a9ed2f052c5c14e4be58c5ec8794dffc87588123.tar.gz kernel-a9ed2f052c5c14e4be58c5ec8794dffc87588123.zip | |
drm/radeon: change drm_dev_alloc to devm_drm_dev_alloc
"drm_dev_alloc" is deprecated, in order to use the newer "devm_drm_dev_alloc",
the "drm_device" is stored inside "radeon_device", by changing "rdev_to_drm(rdev)"
other functions still gain access to the member "drm_device". Also, "devm_drm_dev_alloc"
is now allocating "radeon_device", allocation inside "radeon_driver_load_kms" has to be
removed.
In "radeon_device_init", it originally assigned "rdev->dev" etc. However it is already
done right after "devm_drm_dev_alloc" as you can see down below. It is better remove them.
Reviewed-by: Thomas Zimmermann <[email protected]>
Tested-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Wu Hoi Pok <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
