]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC: amd64: Use static attribute groups
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 10:48:53 +0000 (11:48 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Feb 2015 12:08:09 +0000 (13:08 +0100)
commit382de4747bbe777449fff50e0b7173701b69102f
tree73b213cf415b2ccf03afc9f23b31137f5062b16a
parentb904b4059da116d00f38a408e5ef9c9a512686b9
EDAC: amd64: Use static attribute groups

Instead of calling device_create_file() and device_remove_file()
manually, pass the static attribute groups with the new
edac_mc_add_mc_with_groups(). The conditional creation of inject sysfs
files is done by a proper is_visible callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: http://lkml.kernel.org/r/1423046938-18111-4-git-send-email-tiwai@suse.de
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h
drivers/edac/amd64_edac_dbg.c
drivers/edac/amd64_edac_inj.c