EDAC: Rip out the edac_subsys reference counting
authorBorislav Petkov <bp@suse.de>
Fri, 27 Nov 2015 10:40:43 +0000 (11:40 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 11 Dec 2015 15:56:39 +0000 (16:56 +0100)
commit733476cf207faf574b132523ff2aee78b488ed6b
treef0d455a00d75370ae2bfef8572ade0c73e748f9c
parentfcd5c4dd8201595d4c598c9cca5e54760277d687
EDAC: Rip out the edac_subsys reference counting

This was really dumb - reference counting for the main EDAC sysfs
object. While we could've simply registered it as the first thing in the
module init path and then hand it around to what needs it.

Do that and rip out all the code around it, thus simplifying the whole
handling significantly.

Move the edac_subsys node back to edac_module.c.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_device_sysfs.c
drivers/edac/edac_mc_sysfs.c
drivers/edac/edac_module.c
drivers/edac/edac_pci_sysfs.c
drivers/edac/edac_stub.c
include/linux/edac.h