Commit 5a756aad authored by Chris Wilson's avatar Chris Wilson

drm/i915: Fixup stub definitions for intel_opregion_suspend|resume

248 "multiple definition of ...".  E.g.:

    LD [M]  drivers/gpu/drm/i915/i915.o
  ld: drivers/gpu/drm/i915/i915_irq.o: in function `intel_opregion_resume':
  i915_irq.c:(.text+0x58f0): multiple definition of `intel_opregion_resume';
  drivers/gpu/drm/i915/i915_drv.o:i915_drv.c:(.text+0x2d40): first defined here
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: a950adc6 ("drm/i915: Stop calling intel_opregion unregister/register in suspend/resume")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build tested
Link: https://patchwork.freedesktop.org/patch/msgid/20181129210543.31555-1-chris@chris-wilson.co.uk
parent d6a09cee
......@@ -87,11 +87,11 @@ static inline void intel_opregion_unregister(struct drm_i915_private *dev_priv)
{
}
void intel_opregion_resume(struct drm_i915_private *dev_priv)
static inline void intel_opregion_resume(struct drm_i915_private *dev_priv)
{
}
void intel_opregion_suspend(struct drm_i915_private *dev_priv,
static inline void intel_opregion_suspend(struct drm_i915_private *dev_priv,
pci_power_t state)
{
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment