Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151262
b: refs/heads/master
c: 7a9d56f
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 8f105e0 commit 329fe02
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: aa5ed63e96656bb246a9439e06c7b67d455a5aa1
refs/heads/master: 7a9d56f6a459472bc4383aeb85612d72e79d1818
7 changes: 7 additions & 0 deletions trunk/sound/sound_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ MODULE_DESCRIPTION("Core sound module");
MODULE_AUTHOR("Alan Cox");
MODULE_LICENSE("GPL");

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

static int __init init_soundcore(void)
{
int rc;
Expand All @@ -41,6 +46,8 @@ static int __init init_soundcore(void)
return PTR_ERR(sound_class);
}

sound_class->nodename = sound_nodename;

return 0;
}

Expand Down

0 comments on commit 329fe02

Please sign in to comment.