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)
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>

No differences found