mmio: drop unused i915_loaded fn

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Jesse Barnes 2014-01-28 13:58:23 -08:00
parent 81095305f4
commit 670a717b5b

View 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.
*