xen: balloon: Use static attribute groups for sysfs entries
authorTakashi Iwai <tiwai@suse.de>
Thu, 5 Feb 2015 20:38:59 +0000 (21:38 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Mar 2015 14:49:13 +0000 (14:49 +0000)
commitb6a473a7e1d4f81fc3e355c95982820bb8eae97d
tree86ff95a319a255aee35e12cbbbea52add3c56e6e
parent4644e5ab06dda96f7080569992202e1aec8d3b07
xen: balloon: Use static attribute groups for sysfs entries

Instead of manual calls of device_create_file(), device_remove_file()
and sysfs_create_group(), assign static attribute groups to the device
to register.  This simplifies the code and avoids possible races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-balloon.c