aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-04-29 13:47:12 -0700
committerEric Anholt <eric@anholt.net>2008-04-29 13:48:51 -0700
commit81ba8ded7e01b21e600069977e496017c8966d66 (patch)
treeee975eee73376e9f96a3c6ef32717ea627f7efa9 /tests
parent3148c1636408cc422ab83c149a8963916dd376b0 (diff)
Remove the remainder of the mmfs device.
Diffstat (limited to 'tests')
-rw-r--r--tests/drmtest.c33
-rw-r--r--tests/drmtest.h1
2 files changed, 0 insertions, 34 deletions
diff --git a/tests/drmtest.c b/tests/drmtest.c
index 58f71a6a..5453b105 100644
--- a/tests/drmtest.c
+++ b/tests/drmtest.c
@@ -28,7 +28,6 @@
#include <fcntl.h>
#include <sys/stat.h>
#include "drmtest.h"
-#include "mmfs.h"
/** Open the first DRM device we can find, searching up to 16 device nodes */
int drm_open_any(void)
@@ -82,35 +81,3 @@ int drm_open_any_master(void)
fprintf(stderr, "Couldn't find an un-controlled DRM device\n");
abort();
}
-
-static void
-create_mmfs_device()
-{
- struct stat sb;
- int ret;
-
- ret = stat(MMFS_DEVICE_PATH, &sb);
-
- if (ret == 0)
- return;
-
- ret = mknod(MMFS_DEVICE_PATH, S_IFCHR | S_IRUSR | S_IWUSR,
- makedev(MMFS_DEVICE_MAJOR, 0));
-
- if (ret != 0)
- errx(1, "mknod()");
-}
-
-int
-open_mmfs_device()
-{
- int fd;
-
- create_mmfs_device();
-
- fd = open(MMFS_DEVICE_PATH, O_RDWR);
- if (fd == -1)
- errx(1, "open()");
-
- return fd;
-}
diff --git a/tests/drmtest.h b/tests/drmtest.h
index b84ada71..afa0df4a 100644
--- a/tests/drmtest.h
+++ b/tests/drmtest.h
@@ -35,4 +35,3 @@
int drm_open_any(void);
int drm_open_any_master(void);
-int open_mmfs_device();