aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2017-12-05 13:24:55 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:48:33 -0500
commitab77e02ce98ab8dfb556f2cc0078c6a0bf80ecef (patch)
treef1e126e60df732f4ed4358bf2e3cb037a19c3254 /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
parent366c1baa87f93e5913e753f45f114823b3c83bfd (diff)
drm/amdgpu: Use drm_fb_helper_lastclose() and _poll_changed()
This driver can use drm_fb_helper_lastclose() in its .lastclose function. It can also use drm_fb_helper_output_poll_changed() as its .output_poll_changed callback. Remove the unused driver implementations. Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
index 90fa8e8bc6fb..ff3e9beb7d19 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
@@ -283,12 +283,6 @@ out:
283 return ret; 283 return ret;
284} 284}
285 285
286void amdgpu_fb_output_poll_changed(struct amdgpu_device *adev)
287{
288 if (adev->mode_info.rfbdev)
289 drm_fb_helper_hotplug_event(&adev->mode_info.rfbdev->helper);
290}
291
292static int amdgpu_fbdev_destroy(struct drm_device *dev, struct amdgpu_fbdev *rfbdev) 286static int amdgpu_fbdev_destroy(struct drm_device *dev, struct amdgpu_fbdev *rfbdev)
293{ 287{
294 struct amdgpu_framebuffer *rfb = &rfbdev->rfb; 288 struct amdgpu_framebuffer *rfb = &rfbdev->rfb;
@@ -393,24 +387,3 @@ bool amdgpu_fbdev_robj_is_fb(struct amdgpu_device *adev, struct amdgpu_bo *robj)
393 return true; 387 return true;
394 return false; 388 return false;
395} 389}
396
397void amdgpu_fbdev_restore_mode(struct amdgpu_device *adev)
398{
399 struct amdgpu_fbdev *afbdev;
400 struct drm_fb_helper *fb_helper;
401 int ret;
402
403 if (!adev)
404 return;
405
406 afbdev = adev->mode_info.rfbdev;
407
408 if (!afbdev)
409 return;
410
411 fb_helper = &afbdev->helper;
412
413 ret = drm_fb_helper_restore_fbdev_mode_unlocked(fb_helper);
414 if (ret)
415 DRM_DEBUG("failed to restore crtc mode\n");
416}