Luben Tuikov 8aba21b751 drm/amdgpu: Embed drm_device into amdgpu_device (v3)
a) Embed struct drm_device into struct amdgpu_device.
b) Modify the inline-f drm_to_adev() accordingly.
c) Modify the inline-f adev_to_drm() accordingly.
d) Eliminate the use of drm_device.dev_private,
   in amdgpu.
e) Switch from using drm_dev_alloc() to
   drm_dev_init().
f) Add a DRM driver release function, which frees
   the container amdgpu_device after all krefs on
   the contained drm_device have been released.

v2: Split out adding adev_to_drm() into its own
    patch (previous commit), making this patch
    more succinct and clear. More detailed commit
    description.
v3: squash in fix to call drmm_add_final_kfree()
    to avoid a warning.

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-08-26 16:40:17 -04:00
..
2020-06-24 15:45:51 +10:00
2020-06-30 14:04:00 +10:00
2020-06-30 14:04:00 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-30 14:04:00 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-30 14:04:00 +10:00
2020-06-30 14:04:00 +10:00
2020-04-03 17:11:41 +02:00
2020-06-30 14:04:00 +10:00
2020-06-30 14:04:00 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 09:17:34 +02:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-04-03 17:11:41 +02:00
2020-05-27 14:31:42 +03:00
2020-06-24 15:45:51 +10:00
2020-04-03 17:11:41 +02:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-04-28 15:05:19 +02:00
2020-06-30 14:04:00 +10:00
2020-06-24 15:45:51 +10:00
2020-06-24 15:45:51 +10:00
2020-05-29 12:58:11 +02:00
2020-03-16 09:27:09 +01:00
2020-06-24 09:17:34 +02:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-06-24 15:45:51 +10:00
2020-06-02 15:04:15 -07:00
2020-04-28 16:05:15 +02:00