/* Decrement the refcount, and if 0, call kobject_cleanup().  */
void kobject_put(struct kobject *kobj)
/* Decrement the refcount, and if 0, call kobject_cleanup().  */
void kobject_put(struct kobject *kobj)
{
	if (kobj) {
		if (!kobj->state_initialized)
			WARN(1, KERN_WARNING "kobject: '%s' (%p): is not "
			       "initialized, yet kobject_put() is being "
			       "called.\n", kobject_name(kobj), kobj);
		kref_put(&kobj->kref, kobject_release);
	}
}