summaryrefslogtreecommitdiff
path: root/lib/intel_mmio.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2014-01-28 13:58:23 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2014-01-28 13:58:23 -0800
commit670a717b5bf4c21dde338b87e5b660632ff6f6b0 (patch)
tree2a20705810c979cc3f97234f50144adc799aad7a /lib/intel_mmio.c
parent81095305f4df5289f4d494345da0c87949b55f54 (diff)
mmio: drop unused i915_loaded fn
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
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.
*