From 95374225e865da3a30153f73e8bb536700d15459 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 8 Apr 2010 11:56:57 +0100 Subject: 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 --- tools/intel_lid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/intel_lid.c') diff --git a/tools/intel_lid.c b/tools/intel_lid.c index 71eedb29..908224ee 100644 --- a/tools/intel_lid.c +++ b/tools/intel_lid.c @@ -117,7 +117,7 @@ int main(int argc, char **argv) { int swf14, acpi_lid; - intel_get_mmio(); + intel_get_mmio(intel_get_pci_device()); while (1) { swf14 = INREG(SWF14); -- cgit v1.2.3