Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151264
b: refs/heads/master
c: 02200d0
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 01ac14e commit 37fb6f9
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 6fd4693375b6e1001c69e78f5aefd44bf5aa7084
refs/heads/master: 02200d0664bc630b3525989cb8f49880bf8bda84
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/drm_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ static ssize_t version_show(struct class *dev, char *buf)
CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE);
}

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

static CLASS_ATTR(version, S_IRUGO, version_show, NULL);

/**
Expand Down Expand Up @@ -101,6 +106,8 @@ struct class *drm_sysfs_create(struct module *owner, char *name)
if (err)
goto err_out_class;

class->nodename = drm_nodename;

return class;

err_out_class:
Expand Down

0 comments on commit 37fb6f9

Please sign in to comment.