diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2017-12-05 13:24:55 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:48:33 -0500 |
commit | ab77e02ce98ab8dfb556f2cc0078c6a0bf80ecef (patch) | |
tree | f1e126e60df732f4ed4358bf2e3cb037a19c3254 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | 366c1baa87f93e5913e753f45f114823b3c83bfd (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_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 3222e1d4636c..bd6e9a40f421 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -788,9 +788,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file | |||
788 | */ | 788 | */ |
789 | void amdgpu_driver_lastclose_kms(struct drm_device *dev) | 789 | void amdgpu_driver_lastclose_kms(struct drm_device *dev) |
790 | { | 790 | { |
791 | struct amdgpu_device *adev = dev->dev_private; | 791 | drm_fb_helper_lastclose(dev); |
792 | |||
793 | amdgpu_fbdev_restore_mode(adev); | ||
794 | vga_switcheroo_process_delayed_switch(); | 792 | vga_switcheroo_process_delayed_switch(); |
795 | } | 793 | } |
796 | 794 | ||