diff options
author | Bastian Blank <waldi@debian.org> | 2011-06-29 14:40:08 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-06-30 12:15:33 -0400 |
commit | 149bb2fab547253e6359e76f1b86b95247110e68 (patch) | |
tree | cef69badb03090fc225bc08fbbc3ae20e3693d45 /drivers/xen/xenbus/xenbus_probe.c | |
parent | cc85e93342c030f8ba07f572afa159ec4518231f (diff) | |
download | linux-149bb2fab547253e6359e76f1b86b95247110e68.tar.gz linux-149bb2fab547253e6359e76f1b86b95247110e68.tar.bz2 linux-149bb2fab547253e6359e76f1b86b95247110e68.zip |
xen: Add module alias to autoload backend drivers
All the Xen backend drivers are assigned to a special bus type
xen-backend. This patch exports xen-backend:* names through modalias and
uevent to autoload them.
Signed-off-by: Bastian Blank <waldi@debian.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe.c')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 3 |
1 files changed, 2 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, 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[] = { |