greybus: module: enable all sysfs attributes
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 24 Oct 2014 09:54:02 +0000 (17:54 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 24 Oct 2014 10:36:24 +0000 (18:36 +0800)
commit44dd970be94a468c60e0745536f29115dd40d368
treecd341afea9e8f285a1b4efd2491c3b5939a84c00
parentc4a432d3db8b9fa0145048ac4a84bac54c7a9d73
greybus: module: enable all sysfs attributes

We were thinking that module attributes were known at the time the
device was created in the system, so we could query them to know if the
sysfs file was present or not.  Unfortunatly that's not the case, we
create the device before we parse the values, so just always show the
sysfs attributes.  If there is no such attribute, the sysfs file will be
empty (i.e. for the string attributes.)

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/sysfs.c