]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50be459c9caca06f591090d0c517265f2682c759
tree5352e490833cbc5b9c374c5c6957d42b2f924fbc
parent4e813428b23f3210ec3696d8097c405444662f99
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