drm/nouveau/runpm: fix module unload
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Sep 2014 22:06:56 +0000 (18:06 -0400)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Oct 2014 13:41:35 +0000 (15:41 +0200)
commitfa13e3ec566c51c84975730b34d9da3c1c412992
treecf1964bfee9facf383770faf0b5bba0fab60d2ac
parent5509a38bd19bedccb64c1b3418460ad51f24edff
drm/nouveau/runpm: fix module unload

commit 53beaa01e0fe8e4202f43485a03b32fcf5dfea74 upstream.

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: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/nouveau/nouveau_vga.c