summaryrefslogtreecommitdiff
path: root/bmm_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'bmm_lib.c')
-rw-r--r--bmm_lib.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/bmm_lib.c b/bmm_lib.c
index fa6c350..ab33cde 100644
--- a/bmm_lib.c
+++ b/bmm_lib.c
@@ -35,17 +35,12 @@ static int bmm_fd = -1;
int bmm_init()
{
/* attempt to open the BMM driver */
- if(bmm_fd < 0)
+ if(bmm_fd < 0) {
bmm_fd = open(BMM_DEVICE_FILE, O_RDWR);
- /* if the open failed, try to mount the driver */
- if(bmm_fd < 0 ) {
- system("mknod /dev/bmm c 10 94\n");
- bmm_fd = open(BMM_DEVICE_FILE, O_RDWR);
+ pr_debug("BMM device fd: %d\n", bmm_fd);
}
- pr_debug("BMM device fd: %d", bmm_fd);
-
return bmm_fd;
}