diff options
author | Matthew Garrett <mjg59@srcf.ucam.org> | 2009-04-01 19:52:29 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-17 13:31:07 -0700 |
commit | 3b1c1c1118880921da1188b7245e0470742802f8 (patch) | |
tree | 5802350a461aa87519f7a5ce8e1db431be8ec52f /include/acpi/video.h | |
parent | d770e3cfe5a274a343d896b2cc1646af85646fbc (diff) | |
download | linux-3b1c1c1118880921da1188b7245e0470742802f8.tar.bz2 |
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 'include/acpi/video.h')
-rw-r--r-- | include/acpi/video.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/video.h b/include/acpi/video.h index f0275bb79ce4..af6fe95fd3d0 100644 --- a/include/acpi/video.h +++ b/include/acpi/video.h @@ -3,8 +3,10 @@ #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) extern int acpi_video_register(void); +extern int acpi_video_exit(void); #else static inline int acpi_video_register(void) { return 0; } +static inline void acpi_video_exit(void) { return; } #endif #endif |