diff options
author | Bastian Blank <waldi@debian.org> | 2011-06-29 08:39:26 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-06-30 12:15:29 -0400 |
commit | cc85e93342c030f8ba07f572afa159ec4518231f (patch) | |
tree | 329d1450de5086b9db0b9bfd8fad495ca823a4a3 /drivers/xen/xenbus/xenbus_probe_backend.c | |
parent | 08b8bfc1c649cf82edf43f686cbb9a4bac809679 (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_backend.c')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe_backend.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c index 6cf467bf63ec..ec510e562820 100644 --- a/drivers/xen/xenbus/xenbus_probe_backend.c +++ b/drivers/xen/xenbus/xenbus_probe_backend.c | |||
@@ -183,10 +183,6 @@ static void frontend_changed(struct xenbus_watch *watch, | |||
183 | xenbus_otherend_changed(watch, vec, len, 0); | 183 | xenbus_otherend_changed(watch, vec, len, 0); |
184 | } | 184 | } |
185 | 185 | ||
186 | static struct device_attribute xenbus_backend_dev_attrs[] = { | ||
187 | __ATTR_NULL | ||
188 | }; | ||
189 | |||
190 | static struct xen_bus_type xenbus_backend = { | 186 | static struct xen_bus_type xenbus_backend = { |
191 | .root = "backend", | 187 | .root = "backend", |
192 | .levels = 3, /* backend/type/<frontend>/<id> */ | 188 | .levels = 3, /* backend/type/<frontend>/<id> */ |
@@ -200,7 +196,7 @@ static struct xen_bus_type xenbus_backend = { | |||
200 | .probe = xenbus_dev_probe, | 196 | .probe = xenbus_dev_probe, |
201 | .remove = xenbus_dev_remove, | 197 | .remove = xenbus_dev_remove, |
202 | .shutdown = xenbus_dev_shutdown, | 198 | .shutdown = xenbus_dev_shutdown, |
203 | .dev_attrs = xenbus_backend_dev_attrs, | 199 | .dev_attrs = xenbus_dev_attrs, |
204 | }, | 200 | }, |
205 | }; | 201 | }; |
206 | 202 | ||