Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80621
b: refs/heads/master
c: 0fe410d
h: refs/heads/master
i:
  80619: 4263622
v: v3
  • Loading branch information
Denis Cheng authored and David Teigland committed Jan 30, 2008
1 parent 061c260 commit 1cd1c97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbcfc34733d1ae37e7a78c9e4e5325451223a5eb
refs/heads/master: 0fe410d3f3b1496190f37ef74cd089229cef97fa
13 changes: 7 additions & 6 deletions trunk/fs/dlm/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
#include "lvb_table.h"
#include "user.h"

static const char *name_prefix="dlm";
static struct miscdevice ctl_device;
static const char name_prefix[] = "dlm";
static const struct file_operations device_fops;

#ifdef CONFIG_COMPAT
Expand Down Expand Up @@ -902,14 +901,16 @@ static const struct file_operations ctl_device_fops = {
.owner = THIS_MODULE,
};

static struct miscdevice ctl_device = {
.name = "dlm-control",
.fops = &ctl_device_fops,
.minor = MISC_DYNAMIC_MINOR,
};

int dlm_user_init(void)
{
int error;

ctl_device.name = "dlm-control";
ctl_device.fops = &ctl_device_fops;
ctl_device.minor = MISC_DYNAMIC_MINOR;

error = misc_register(&ctl_device);
if (error)
log_print("misc_register failed for control device");
Expand Down

0 comments on commit 1cd1c97

Please sign in to comment.