]> Pileus Git - ~andy/linux/commit
xen: Populate xenbus device attributes
authorBastian Blank <waldi@debian.org>
Wed, 29 Jun 2011 12:39:26 +0000 (14:39 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 30 Jun 2011 16:15:29 +0000 (12:15 -0400)
commitcc85e93342c030f8ba07f572afa159ec4518231f
tree329d1450de5086b9db0b9bfd8fad495ca823a4a3
parent08b8bfc1c649cf82edf43f686cbb9a4bac809679
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>
drivers/xen/xenbus/xenbus_probe.c
drivers/xen/xenbus/xenbus_probe.h
drivers/xen/xenbus/xenbus_probe_backend.c
drivers/xen/xenbus/xenbus_probe_frontend.c