]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit388a8c353d671d4ea2f638be84cfcbb912afdcf2
tree65ec95b89c0620b909b398d42ef0695fb681dc17
parent6ab9cea16075ea707022753395f340b67f64304c
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