Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151263
b: refs/heads/master
c: 6fd4693
h: refs/heads/master
i:
  151261: 8f105e0
  151259: b10c3b2
  151255: 3b4d334
  151247: 0083a2d
  151231: 644530c
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 329fe02 commit 01ac14e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a9d56f6a459472bc4383aeb85612d72e79d1818
refs/heads/master: 6fd4693375b6e1001c69e78f5aefd44bf5aa7084
6 changes: 6 additions & 0 deletions trunk/drivers/char/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ static const struct file_operations raw_ctl_fops = {

static struct cdev raw_cdev;

static char *raw_nodename(struct device *dev)
{
return kasprintf(GFP_KERNEL, "raw/%s", dev_name(dev));
}

static int __init raw_init(void)
{
dev_t dev = MKDEV(RAW_MAJOR, 0);
Expand All @@ -284,6 +289,7 @@ static int __init raw_init(void)
ret = PTR_ERR(raw_class);
goto error_region;
}
raw_class->nodename = raw_nodename;
device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl");

return 0;
Expand Down

0 comments on commit 01ac14e

Please sign in to comment.