drm/nouveau/runpm: fix module unload
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Sep 2014 22:06:56 +0000 (18:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Sep 2014 23:22:37 +0000 (19:22 -0400)
commit53beaa01e0fe8e4202f43485a03b32fcf5dfea74
tree80c1ca9dd6695a43cf536167cfc89ed5ebed4f88
parent2e97140dd58cab8772bf77d73eabda213e45202d
drm/nouveau/runpm: fix module unload

Use the new vga_switcheroo_fini_domain_pm_ops function
to unregister the pm ops.

Based on a patch from:
Pali Rohár <pali.rohar@gmail.com>

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=84431

Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Cc: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_vga.c