summaryrefslogtreecommitdiff
path: root/tools/intel_gpu_top.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2017-08-07 15:23:29 +0300
committerPetri Latvala <petri.latvala@intel.com>2017-08-08 13:07:55 +0300
commiteeff6a1d9c4e2c195b30ad95ee36a58ef6ca3387 (patch)
treeb04599b64c517f64e743069233398106b5760e46 /tools/intel_gpu_top.c
parentaa60bc6317d7fad7e03e7dce8eaa91068f21d3d2 (diff)
intel_gpu_top: Use drm_open_driver, don't need drm master
Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tools/intel_gpu_top.c')
-rw-r--r--tools/intel_gpu_top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 78488764..3fe77f70 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -513,7 +513,7 @@ int main(int argc, char **argv)
}
/* Just to make sure we open the right debugfs files */
- drm_fd = drm_open_driver_master(DRIVER_INTEL);
+ drm_fd = drm_open_driver(DRIVER_INTEL);
/* Grab access to the registers */
intel_register_access_init(pci_dev, 0, drm_fd);