xen: pcpu: Use static attribute groups for sysfs entry
authorTakashi Iwai <tiwai@suse.de>
Thu, 5 Feb 2015 20:38:58 +0000 (21:38 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Mar 2015 14:49:13 +0000 (14:49 +0000)
commit4644e5ab06dda96f7080569992202e1aec8d3b07
tree5352e490833cbc5b9c374c5c6957d42b2f924fbc
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda
xen: pcpu: Use static attribute groups for sysfs entry

Instead of manual calls of device_create_file() and
device_remove_file(), assign the static attribute groups to the device
to register.  The conditional build of sysfs is done in is_visible
callback instead.

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