/* kobject_del - unlink kobject from hierarchy. @kobj: object.  */
void kobject_del(struct kobject *kobj)
/* kobject_del - unlink kobject from hierarchy. @kobj: object.  */
void kobject_del(struct kobject *kobj)
{
	if (!kobj)
		return;
	sysfs_remove_dir(kobj);
	kobj->state_in_sysfs = 0;
	kobj_kset_leave(kobj);
	kobject_put(kobj->parent);
	kobj->parent = NULL;
}