From: Takashi Iwai Date: Wed, 4 Feb 2015 14:36:14 +0000 (+0100) Subject: ipmi: Use is_visible callback for conditional sysfs entries X-Git-Tag: fixes-v4.0-rc1~47^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d06a0c9b3756404e141cafcd62b29ce05238007;p=pandora-kernel.git ipmi: Use is_visible callback for conditional sysfs entries Instead of manual calls of device_create_file() and device_remove_file(), implement the condition in is_visible callback for the attribute group and put these entries to the group, too. This simplifies the code and avoids the possible races. Signed-off-by: Takashi Iwai Signed-off-by: Corey Minyard --- Reading git-diff-tree failed