drm/i915: group display-related register calls
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 13 Feb 2021 04:27:54 +0000 (20:27 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 13 Feb 2021 20:52:57 +0000 (12:52 -0800)
commitef7eff1aae10acd81ab266e7d843e0db52279d16
treed049c26183e0c1964c7538c676d0a6b9819db6b8
parentec3e00b4ee2768a457d9b6278c0dfac05473abd1
drm/i915: group display-related register calls

intel_gt_driver_register() may be called earlier than
intel_opregion_register() and acpi_video_register(), so move it up.

intel_display_debugfs_register() may be called later, together with the
other display-related initializations. There is a slight change in
behavior that sysfs files will show up before the display-related
debugfs files, but that shouldn't be a problem - userspace shouldn't be
relying in debugfs.

This allows us to group all the display-related calls under a single
check for "HAS_DISPLAY()" that can be later moved to a better place.

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-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/i915_drv.c