summaryrefslogtreecommitdiff
path: root/tools/intel_panel_fitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/intel_panel_fitter.c')
-rw-r--r--tools/intel_panel_fitter.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/intel_panel_fitter.c b/tools/intel_panel_fitter.c
index 06f4ac59..137ef61a 100644
--- a/tools/intel_panel_fitter.c
+++ b/tools/intel_panel_fitter.c
@@ -30,7 +30,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include "igt_device.h"
#include "intel_io.h"
#include "intel_chipset.h"
#include "intel_reg.h"
@@ -274,17 +273,13 @@ int main (int argc, char *argv[])
bool do_disable = false, do_dump = false, do_usage = false;
struct pci_device *pci_dev;
uint32_t devid;
- int fd;
printf("WARNING:\n"
"This tool is a workaround for people that don't have a Kernel "
"with overscan compensation properties: it is just a temporary "
"solution that may or may not work. Use it at your own risk.\n");
- fd = drm_open_driver(DRIVER_INTEL);
- pci_dev = igt_device_get_pci_device(fd);
- close(fd);
-
+ pci_dev = intel_get_pci_device();
intel_register_access_init(pci_dev, 0, -1);
devid = pci_dev->device_id;
@@ -348,6 +343,5 @@ int main (int argc, char *argv[])
out:
intel_register_access_fini();
-
return ret;
}