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 <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
This commit is contained in:
Matthew Garrett 2009-04-01 19:52:29 +01:00 • committed by Eric Anholt
commit 3b1c1c1118
6 changed files with 12 additions and 6 deletions

View file

@ -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