aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_si_intf.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-04 15:36:14 +0100
committerCorey Minyard <cminyard@mvista.com>2015-02-19 20:58:40 -0600
commit2d06a0c9b3756404e141cafcd62b29ce05238007 (patch)
treecd9e8476ce380098f8799b4c958f630f4f1c4186 /drivers/char/ipmi/ipmi_si_intf.c
parentipmi: Free ipmi_recv_msg messages from the linked list on close (diff)
downloadlinux-dev-2d06a0c9b3756404e141cafcd62b29ce05238007.tar.xz
linux-dev-2d06a0c9b3756404e141cafcd62b29ce05238007.zip
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 <tiwai@suse.de> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_intf.c')
0 files changed, 0 insertions, 0 deletions