From: Pawel Moll Date: Wed, 23 Apr 2014 17:27:05 +0000 (+0100) Subject: hwmon: (vexpress) Avoid creating non-existing attributes X-Git-Tag: omap-for-v3.16/pm-signed~50^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e5411ee26bff1deefd0b2c7beec9c133632e65;p=pandora-kernel.git hwmon: (vexpress) Avoid creating non-existing attributes The 'label' attribute was always created but returned -ENOENT if there is no label and such behaviour is undefined from libsensors' point of view. Fixed by providing is_visible method in the attributes group, so the attribute is not created at all when unnecessary. Reported-by: Guenter Roeck Signed-off-by: Pawel Moll Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed