summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2009-04-01 19:52:29 +0100
committerEric Anholt <eric@anholt.net>2009-04-17 13:31:07 -0700
commit3b1c1c1118880921da1188b7245e0470742802f8 (patch)
tree5802350a461aa87519f7a5ce8e1db431be8ec52f /drivers/acpi
parentd770e3cfe5a274a343d896b2cc1646af85646fbc (diff)
downloadlinux-3.10-3b1c1c1118880921da1188b7245e0470742802f8.tar.gz
linux-3.10-3b1c1c1118880921da1188b7245e0470742802f8.tar.bz2
linux-3.10-3b1c1c1118880921da1188b7245e0470742802f8.zip
drm/i915: Unregister ACPI video driver when exiting
The i915 DRM triggers registration of the ACPI video driver on load. It should unregister it at unload in order to avoid generating backtraces on being reloaded. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index cd4fb7543a9..8961e613e09 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -2293,7 +2293,7 @@ static int __init acpi_video_init(void)
return acpi_video_register();
}
-static void __exit acpi_video_exit(void)
+void __exit acpi_video_exit(void)
{
acpi_bus_unregister_driver(&acpi_video_bus);
@@ -2302,6 +2302,7 @@ static void __exit acpi_video_exit(void)
return;
}
+EXPORT_SYMBOL(acpi_video_exit);
module_init(acpi_video_init);
module_exit(acpi_video_exit);