diff options
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 3 | ||||
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe_backend.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 2ed0b045c69a..bd2f90c9ac8b 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -393,7 +393,8 @@ static ssize_t devtype_show(struct device *dev, | |||
393 | static ssize_t modalias_show(struct device *dev, | 393 | static ssize_t modalias_show(struct device *dev, |
394 | struct device_attribute *attr, char *buf) | 394 | struct device_attribute *attr, char *buf) |
395 | { | 395 | { |
396 | return sprintf(buf, "xen:%s\n", to_xenbus_device(dev)->devicetype); | 396 | return sprintf(buf, "%s:%s\n", dev->bus->name, |
397 | to_xenbus_device(dev)->devicetype); | ||
397 | } | 398 | } |
398 | 399 | ||
399 | struct device_attribute xenbus_dev_attrs[] = { | 400 | struct device_attribute xenbus_dev_attrs[] = { |
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c index ec510e562820..60adf919d78d 100644 --- a/drivers/xen/xenbus/xenbus_probe_backend.c +++ b/drivers/xen/xenbus/xenbus_probe_backend.c | |||
@@ -107,6 +107,9 @@ static int xenbus_uevent_backend(struct device *dev, | |||
107 | if (xdev == NULL) | 107 | if (xdev == NULL) |
108 | return -ENODEV; | 108 | return -ENODEV; |
109 | 109 | ||
110 | if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) | ||
111 | return -ENOMEM; | ||
112 | |||
110 | /* stuff we want to pass to /sbin/hotplug */ | 113 | /* stuff we want to pass to /sbin/hotplug */ |
111 | if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype)) | 114 | if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype)) |
112 | return -ENOMEM; | 115 | return -ENOMEM; |