]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: prevent warning when only using binary attributes
authorOliver Schinagl <oliver@schinagl.nl>
Sun, 14 Jul 2013 23:05:56 +0000 (16:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jul 2013 17:57:36 +0000 (10:57 -0700)
commit60329d3cd722a39b999a993a7dde1cba592f31a9
tree65ec95b89c0620b909b398d42ef0695fb681dc17
parentaabf8f2be998d66d25bfded91d0046b73ed81d4f
sysfs: prevent warning when only using binary attributes

When only using bin_attrs instead of attrs the kernel prints a warning
and refuses to create the sysfs entry. This fixes that.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/group.c