drm/i915: Use a DRM-managed action to release the PCI bridge device
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 6 Sep 2022 23:49:27 +0000 (16:49 -0700)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 12 Sep 2022 12:23:12 +0000 (15:23 +0300)
commit6438452de4412785636e803aff58fa2e857dc6f2
treeadb69df3380563692a50d647888dc3531338b56b
parent4ecd56fdad5681c7c89483c26b5130977ace9fa2
drm/i915: Use a DRM-managed action to release the PCI bridge device

As we start supporting multiple uncore structures in future patches, the
MMIO cleanup (which may also get called mid-init if there's a failure)
will become more complicated.  Moving to DRM-managed actions will help
keep things simple.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220906234934.3655440-8-matthew.d.roper@intel.com
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_driver.c