drm/i915: move intel_init_audio_hooks inside display
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 13 Feb 2021 04:27:56 +0000 (20:27 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 13 Feb 2021 20:53:00 +0000 (12:53 -0800)
commitf3243b75dbc7f305806adaaca379338e25dba755
tree6827567d7f83a09d2fa7c8df8e147e67c20df9ca
parent141b415f9f9fd23ecd1ebebc14f7e1d3765d74d1
drm/i915: move intel_init_audio_hooks inside display

intel_init_audio_hooks() sets up hooks in the display struct and only
makes sense when we have display. Move it inside
intel_init_display_hooks() so it isn't called when we don't have
display.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210213042756.953007-4-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_drv.c