This reduces the surface from which display/ is called by the other parts of the driver, starting with the init. For that new intel_display_driver_{register,unregister} functions are created that will deal with the HAS_DISPLAY check. There are more changes needed, but I'm sending this early for feedback and CI. Lucas De Marchi (3): drm/i915: stop registering if drm_dev_register() fails drm/i915: group display-related register calls drm/i915/display: move register functions to display/ drivers/gpu/drm/i915/display/intel_display.c | 53 ++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 3 ++ drivers/gpu/drm/i915/i915_drv.c | 52 ++++--------------- 3 files changed, 65 insertions(+), 43 deletions(-) -- 2.29.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx