]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Replace open-coded i915_address_space_init()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jul 2018 06:56:53 +0000 (07:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jul 2018 10:19:24 +0000 (11:19 +0100)
commit0f17d5dd2199555830482b638a5fc8bf915f2f10
treef3a8e6fe76855055c7f04758dfe924b07b402b13
parenteae4c9445354602926ff7cc4702c2516e2485a94
drm/i915/selftests: Replace open-coded i915_address_space_init()

Use i915_address_space_init() rather than open-code it inside
mock_ppgtt() as we will forget to keep it in sync.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180705065653.20449-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_gtt.c