summaryrefslogtreecommitdiff
path: root/lib/intel_mmio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/intel_mmio.c')
-rw-r--r--lib/intel_mmio.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
index 2f8cab7a..930a44f8 100644
--- a/lib/intel_mmio.c
+++ b/lib/intel_mmio.c
@@ -155,22 +155,6 @@ release_forcewake_lock(int fd)
close(fd);
}
-/* Dumb check to see if i915 was loaded */
-static bool
-i915_loaded(void)
-{
- struct stat sb;
- int ret;
-
- ret = stat("/sys/module/i915/", &sb);
- if (ret) {
- return false;
- }
-
- assert(S_ISDIR(sb.st_mode));
- return true;
-}
-
/*
* Initialize register access library.
*