diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-08 11:56:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-08 12:17:31 +0100 |
commit | 95374225e865da3a30153f73e8bb536700d15459 (patch) | |
tree | ab8797a6f255a0d76e5d8e7439b8fe4a9b34ca90 /tools/intel_reg_write.c | |
parent | cd64e193299be4b9733a5e804cedd99e2072830f (diff) |
Enable compilation on non-Intel, non-DRM systems.
A few of the tools can be performed post-mortem from a different system,
so it is useful to be able to compile those tools on those foreign
systems. Obviously, any program to interact with the PCI device or talk
to GEM will fail on a non-Intel system.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/intel_reg_write.c')
-rw-r--r-- | tools/intel_reg_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_reg_write.c b/tools/intel_reg_write.c index 7bed0623..c8af9bbf 100644 --- a/tools/intel_reg_write.c +++ b/tools/intel_reg_write.c @@ -43,7 +43,7 @@ int main(int argc, char** argv) exit(1); } - intel_get_mmio(); + intel_get_mmio(intel_get_pci_device()); sscanf(argv[1], "0x%x", ®); sscanf(argv[2], "0x%x", &value); ptr = (volatile uint32_t *)((volatile char *)mmio + reg); |