aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenbus/xenbus_probe_frontend.c
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2011-06-29 08:39:26 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-06-30 12:15:29 -0400
commitcc85e93342c030f8ba07f572afa159ec4518231f (patch)
tree329d1450de5086b9db0b9bfd8fad495ca823a4a3 /drivers/xen/xenbus/xenbus_probe_frontend.c
parent08b8bfc1c649cf82edf43f686cbb9a4bac809679 (diff)
xen: Populate xenbus device attributes
The xenbus bus type uses device_create_file to assign all used device attributes. However it does not remove them when the device goes away. This patch uses the dev_attrs field of the bus type to specify default attributes for all devices. 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_frontend.c')
-rw-r--r--drivers/xen/xenbus/xenbus_probe_frontend.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c
index b6a2690c9d4..ed2ba474a56 100644
--- a/drivers/xen/xenbus/xenbus_probe_frontend.c
+++ b/drivers/xen/xenbus/xenbus_probe_frontend.c
@@ -81,10 +81,6 @@ static void backend_changed(struct xenbus_watch *watch,
81 xenbus_otherend_changed(watch, vec, len, 1); 81 xenbus_otherend_changed(watch, vec, len, 1);
82} 82}
83 83
84static struct device_attribute xenbus_frontend_dev_attrs[] = {
85 __ATTR_NULL
86};
87
88static const struct dev_pm_ops xenbus_pm_ops = { 84static const struct dev_pm_ops xenbus_pm_ops = {
89 .suspend = xenbus_dev_suspend, 85 .suspend = xenbus_dev_suspend,
90 .resume = xenbus_dev_resume, 86 .resume = xenbus_dev_resume,
@@ -106,7 +102,7 @@ static struct xen_bus_type xenbus_frontend = {
106 .probe = xenbus_dev_probe, 102 .probe = xenbus_dev_probe,
107 .remove = xenbus_dev_remove, 103 .remove = xenbus_dev_remove,
108 .shutdown = xenbus_dev_shutdown, 104 .shutdown = xenbus_dev_shutdown,
109 .dev_attrs = xenbus_frontend_dev_attrs, 105 .dev_attrs = xenbus_dev_attrs,
110 106
111 .pm = &xenbus_pm_ops, 107 .pm = &xenbus_pm_ops,
112 }, 108 },