diff options
author | Lyude Paul <lyude@redhat.com> | 2018-08-15 15:15:12 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-09-07 06:54:26 +1000 |
commit | 0d7b2d4def679cae3bf2728fc31be7f8a48ceab3 (patch) | |
tree | 99a617731bdbeafb04e48eafeb09b38d31d706b4 /drivers/gpu/drm | |
parent | 0445f7537d0742e4f8bcf594a8d81fb901fd131e (diff) | |
download | lwn-0d7b2d4def679cae3bf2728fc31be7f8a48ceab3.tar.gz lwn-0d7b2d4def679cae3bf2728fc31be7f8a48ceab3.zip |
drm/nouveau: Remove useless poll_disable() call in switcheroo_set_state()
This won't do anything but potentially make us miss hotplugs. We already
call drm_kms_helper_poll_disable() in
nouveau_pmops_suspend()->nouveau_display_suspend()->nouveau_display_fini()
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Cc: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_vga.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c index 09b1d8151881..8f1ce4833230 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c @@ -50,7 +50,6 @@ nouveau_switcheroo_set_state(struct pci_dev *pdev, } else { pr_err("VGA switcheroo: switched nouveau off\n"); dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; - drm_kms_helper_poll_disable(dev); nouveau_switcheroo_optimus_dsm(); nouveau_pmops_suspend(&pdev->dev); dev->switch_power_state = DRM_SWITCH_POWER_OFF; |