diff options
| author | Thomas Zimmermann <[email protected]> | 2021-01-07 08:07:42 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2021-01-13 08:02:58 +0000 |
| commit | 8f66090b7bb7f2a2183f46e72e367922d836e0dd (patch) | |
| tree | cc2166e40fbcef704b75f07e658ea1fe8116b57f /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |
| parent | drm/amdgpu: Fix trailing whitespaces (diff) | |
| download | kernel-8f66090b7bb7f2a2183f46e72e367922d836e0dd.tar.gz kernel-8f66090b7bb7f2a2183f46e72e367922d836e0dd.zip | |
drm/amdgpu: Remove references to struct drm_device.pdev
Using struct drm_device.pdev is deprecated. Convert amdgpu to struct
drm_device.dev. No functional changes.
v3:
* rebased
Signed-off-by: Thomas Zimmermann <[email protected]>
Acked-by: Christian König <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index 0bf7d36c6686..51cd49c6f38f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c @@ -271,7 +271,7 @@ static int amdgpufb_create(struct drm_fb_helper *helper, DRM_INFO("fb depth is %d\n", fb->format->depth); DRM_INFO(" pitch is %d\n", fb->pitches[0]); - vga_switcheroo_client_fb_set(adev_to_drm(adev)->pdev, info); + vga_switcheroo_client_fb_set(adev->pdev, info); return 0; out: |
