diff options
Diffstat (limited to 'tests/i915/i915_pm_lpsp.c')
-rw-r--r-- | tests/i915/i915_pm_lpsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c index b319dbe9..4e7ce399 100644 --- a/tests/i915/i915_pm_lpsp.c +++ b/tests/i915/i915_pm_lpsp.c @@ -30,6 +30,7 @@ #include <fcntl.h> #include <unistd.h> +#include "igt_device.h" static bool supports_lpsp(uint32_t devid) { @@ -210,7 +211,7 @@ igt_main igt_require(supports_lpsp(devid)); - intel_register_access_init(intel_get_pci_device(), 0, drm_fd); + intel_register_access_init(igt_device_get_pci_device(drm_fd), 0, drm_fd); kmstest_set_vt_graphics_mode(); } |