mmio: drop unused i915_loaded fn
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 28 Jan 2014 21:58:23 +0000 (13:58 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 28 Jan 2014 21:58:23 +0000 (13:58 -0800)
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
lib/intel_mmio.c

index 2f8cab7..930a44f 100644 (file)
@@ -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.
  *