Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263538
b: refs/heads/master
c: 886b66e
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and John W. Linville committed Aug 22, 2011
1 parent 5561a44 commit a28688d
Show file tree
Hide file tree
Showing 2 changed files with 13 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: b503c7a273c0a3018ad11ea8c513c639120afbf4
refs/heads/master: 886b66ef2f2d4984f6c72d86a9d8a3ffe4344fa5
12 changes: 12 additions & 0 deletions trunk/drivers/bcma/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ MODULE_LICENSE("GPL");
static int bcma_bus_match(struct device *dev, struct device_driver *drv);
static int bcma_device_probe(struct device *dev);
static int bcma_device_remove(struct device *dev);
static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env);

static ssize_t manuf_show(struct device *dev, struct device_attribute *attr, char *buf)
{
Expand Down Expand Up @@ -49,6 +50,7 @@ static struct bus_type bcma_bus_type = {
.match = bcma_bus_match,
.probe = bcma_device_probe,
.remove = bcma_device_remove,
.uevent = bcma_device_uevent,
.dev_attrs = bcma_device_attrs,
};

Expand Down Expand Up @@ -227,6 +229,16 @@ static int bcma_device_remove(struct device *dev)
return 0;
}

static int bcma_device_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct bcma_device *core = container_of(dev, struct bcma_device, dev);

return add_uevent_var(env,
"MODALIAS=bcma:m%04Xid%04Xrev%02Xcl%02X",
core->id.manuf, core->id.id,
core->id.rev, core->id.class);
}

static int __init bcma_modinit(void)
{
int err;
Expand Down

0 comments on commit a28688d

Please sign in to comment.