drm/i915/selftests: Free mock_i915->drm.mode_config
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Dec 2017 21:08:35 +0000 (21:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Dec 2017 11:24:30 +0000 (11:24 +0000)
commit19553d57dcddf659133739cd073bf2049f2b0ea9
tree25c236d6f0eefb0657bed1137be7849478956876
parent8516673a996870ea0ceb337ee4f83c33c5ec3111
drm/i915/selftests: Free mock_i915->drm.mode_config

Even for the mock i915 device, we need to initialise the
drm.mode_config, as we may ultimately query whether there are any KMS
users deep in the bowels of some paths (e.g. eviction). As we initialise
drm.mode_config we must cleanup after ourselves!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171209210835.32609-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_gem_device.c