Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151260
b: refs/heads/master
c: 8a8bdcc
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent b10c3b2 commit 2a0d983
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 07e9bb8eebb04c81323cbd3eabf07a3f6f05b204
refs/heads/master: 8a8bdcc7533b104d789d9bb3ed90da9352515e21
10 changes: 10 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/dvbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,15 @@ static int dvb_uevent(struct device *dev, struct kobj_uevent_env *env)
return 0;
}

static char *dvb_nodename(struct device *dev)
{
struct dvb_device *dvbdev = dev_get_drvdata(dev);

return kasprintf(GFP_KERNEL, "dvb/adapter%d/%s%d",
dvbdev->adapter->num, dnames[dvbdev->type], dvbdev->id);
}


static int __init init_dvbdev(void)
{
int retval;
Expand All @@ -469,6 +478,7 @@ static int __init init_dvbdev(void)
goto error;
}
dvb_class->dev_uevent = dvb_uevent;
dvb_class->nodename = dvb_nodename;
return 0;

error:
Expand Down

0 comments on commit 2a0d983

Please sign in to comment.