summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNathan Fontenot <nfont@linux.vnet.ibm.com>2013-06-04 19:42:28 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 19:38:11 (GMT)
commit96b2c0fc8e74a615888e2bedfe55b439aa4695e1 (patch)
tree3fd5d07988ba4819988610d608b9494b66c9f191 /kernel
parent5b7cb7a1289b77b942e0833c57d76287878315c2 (diff)
downloadlinux-fsl-qoriq-96b2c0fc8e74a615888e2bedfe55b439aa4695e1.tar.xz
drivers/base: Use attribute groups to create sysfs memory files
Update the sysfs memory code to create/delete files at the time of device and subsystem registration. The current code creates files in the root memory directory explicitly through the use of init_* routines. The files for each memory block are created and deleted explicitly using the mem_[create|delete]_simple_file macros. This patch creates attribute groups for the memory root files and files in each memory block directory so that they are created and deleted implicitly at subsys and device register and unregister time. This did necessitate moving the register_memory() updating it to set the dev.groups field. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions