From: Kay Sievers Date: Wed, 19 Dec 2007 00:40:42 +0000 (+0100) Subject: Kobject: auto-cleanup on final unref X-Git-Tag: v2.6.25-rc1~1243^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4dafc0563c6c49e17fe14b3f5f356e4c4b8806;p=pandora-kernel.git Kobject: auto-cleanup on final unref We save the current state in the object itself, so we can do proper cleanup when the last reference is dropped. If the initial reference is dropped, the object will be removed from sysfs if needed, if an "add" event was sent, "remove" will be send, and the allocated resources are released. This allows us to clean up some driver core usage as well as allowing us to do other such changes to the rest of the kernel. Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed