drm/radeon/px: fix module unload
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Sep 2014 22:00:53 +0000 (18:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:22 +0000 (14:52 -0700)
commitfc7884a1fd56038e2137572095acf38500de04b5
tree9e8becbba9959dcfedbb7216ad802f0208844f10
parent92ebad9165af9db2677cdc37dee9afee65f8cc0f
drm/radeon/px: fix module unload

commit 2e97140dd58cab8772bf77d73eabda213e45202d 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>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_device.c