linux/drivers/edac
Doug Thompson 8096cfafbb drivers/edac: fix edac_mc sysfs completion code
This patch refactors the 'releasing' of kobjects for the edac_mc type of
device.  The correct pattern of kobject release is followed.

As internal kobjs are allocated they bump a ref count on the top level kobj.
It in turn has a module ref count on the edac_core module.  When internal
kobjects are released, they dec the ref count on the top level kobj.  When the
top level kobj reaches zero, it decrements the ref count on the edac_core
object, allow it to be unloaded, as all resources have all now been released.

Cc: Alan Cox alan@lxorguk.ukuu.org.uk
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:57 -07:00
..
Kconfig drivers/edac: new pasemi driver 2007-07-19 10:04:56 -07:00
Makefile drivers/edac: new pasemi driver 2007-07-19 10:04:56 -07:00
amd76x_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
e7xxx_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
e752x_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
edac_core.h drivers/edac: fix edac_mc sysfs completion code 2007-07-19 10:04:57 -07:00
edac_device.c drivers/edac: fix edac_device init apis 2007-07-19 10:04:57 -07:00
edac_device_sysfs.c drivers/edac: fix leaf sysfs attribute 2007-07-19 10:04:56 -07:00
edac_mc.c drivers/edac: fix edac_mc sysfs completion code 2007-07-19 10:04:57 -07:00
edac_mc_sysfs.c drivers/edac: fix edac_mc sysfs completion code 2007-07-19 10:04:57 -07:00
edac_module.c drivers/edac: fix edac_mc sysfs completion code 2007-07-19 10:04:57 -07:00
edac_module.h drivers/edac: fix edac_mc sysfs completion code 2007-07-19 10:04:57 -07:00
edac_pci.c drivers/edac: mod edac_opt_state_to_string function 2007-07-19 10:04:56 -07:00
edac_pci_sysfs.c drivers/edac: remove null from statics 2007-07-19 10:04:55 -07:00
edac_stub.c drivers/edac: core Lindent cleanup 2007-07-19 10:04:54 -07:00
i3000_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
i5000_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
i82443bxgx_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
i82860_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
i82875p_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
pasemi_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00
r82600_edac.c drivers/edac: fix edac_mc init apis 2007-07-19 10:04:57 -07:00