[Nouveau] [PATCH 02/14] drm/nouveau: Unregister switcheroo client on exit
Emil Velikov
emil.l.velikov at gmail.com
Sun May 20 16:14:51 PDT 2012
From: Andreas Heider <andreas at meetr.de>
Currently nouveau only registers as a vga_switcheroo client, but never
unregisters. This patch adds the necessary unregister calls.
Signed-off-by: Andreas Heider <andreas at meetr.de>
---
v2: Rebased on top of master
drivers/gpu/drm/nouveau/nouveau_state.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index 1a70d07..b84db66 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -344,6 +344,7 @@ out_device_init:
out_display_early:
engine->display.late_takedown(ndev);
out:
+ vga_switcheroo_unregister_client(dev->pdev);
vga_client_register(dev->pdev, NULL, NULL, NULL);
return ret;
}
@@ -387,6 +388,7 @@ static void nouveau_card_takedown(struct nouveau_device *ndev)
nouveau_irq_fini(ndev);
+ vga_switcheroo_unregister_client(dev->pdev);
vga_client_register(dev->pdev, NULL, NULL, NULL);
}
--
1.7.10.2
More information about the Nouveau
mailing list