diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index f20ffe17df71..901e80cf5813 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -539,11 +539,18 @@ extern int i915_restore_state(struct drm_device *dev); | |||
539 | extern int i915_save_state(struct drm_device *dev); | 539 | extern int i915_save_state(struct drm_device *dev); |
540 | extern int i915_restore_state(struct drm_device *dev); | 540 | extern int i915_restore_state(struct drm_device *dev); |
541 | 541 | ||
542 | #ifdef CONFIG_ACPI | ||
542 | /* i915_opregion.c */ | 543 | /* i915_opregion.c */ |
543 | extern int intel_opregion_init(struct drm_device *dev); | 544 | extern int intel_opregion_init(struct drm_device *dev); |
544 | extern void intel_opregion_free(struct drm_device *dev); | 545 | extern void intel_opregion_free(struct drm_device *dev); |
545 | extern void opregion_asle_intr(struct drm_device *dev); | 546 | extern void opregion_asle_intr(struct drm_device *dev); |
546 | extern void opregion_enable_asle(struct drm_device *dev); | 547 | extern void opregion_enable_asle(struct drm_device *dev); |
548 | #else | ||
549 | static inline int intel_opregion_init(struct drm_device *dev) { return 0; } | ||
550 | static inline void intel_opregion_free(struct drm_device *dev) { return; } | ||
551 | static inline void opregion_asle_intr(struct drm_device *dev) { return; } | ||
552 | static inline void opregion_enable_asle(struct drm_device *dev) { return; } | ||
553 | #endif | ||
547 | 554 | ||
548 | /** | 555 | /** |
549 | * Lock test for when it's just for synchronization of ring access. | 556 | * Lock test for when it's just for synchronization of ring access. |