aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_acpi.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c
index 284bd25d5d21..fc841e87b343 100644
--- a/drivers/gpu/drm/nouveau/nouveau_acpi.c
+++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c
@@ -338,7 +338,8 @@ void nouveau_switcheroo_optimus_dsm(void)
338 338
339void nouveau_unregister_dsm_handler(void) 339void nouveau_unregister_dsm_handler(void)
340{ 340{
341 vga_switcheroo_unregister_handler(); 341 if (nouveau_dsm_priv.optimus_detected || nouveau_dsm_priv.dsm_detected)
342 vga_switcheroo_unregister_handler();
342} 343}
343 344
344/* retrieve the ROM in 4k blocks */ 345/* retrieve the ROM in 4k blocks */