Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255267
b: refs/heads/master
c: 149bb2f
h: refs/heads/master
i:
  255265: 05e0fab
  255263: 2f28d8e
v: v3
  • Loading branch information
Bastian Blank authored and Konrad Rzeszutek Wilk committed Jun 30, 2011
1 parent a0a97aa commit 96d64e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc85e93342c030f8ba07f572afa159ec4518231f
refs/heads/master: 149bb2fab547253e6359e76f1b86b95247110e68
3 changes: 2 additions & 1 deletion trunk/drivers/xen/xenbus/xenbus_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ static ssize_t devtype_show(struct device *dev,
static ssize_t modalias_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
return sprintf(buf, "xen:%s\n", to_xenbus_device(dev)->devicetype);
return sprintf(buf, "%s:%s\n", dev->bus->name,
to_xenbus_device(dev)->devicetype);
}

struct device_attribute xenbus_dev_attrs[] = {
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/xen/xenbus/xenbus_probe_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ static int xenbus_uevent_backend(struct device *dev,
if (xdev == NULL)
return -ENODEV;

if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype))
return -ENOMEM;

/* stuff we want to pass to /sbin/hotplug */
if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype))
return -ENOMEM;
Expand Down

0 comments on commit 96d64e5

Please sign in to comment.