klist_remove(&dev->knode_parent);
klist_del(&dev->knode_parent);
void device_del(struct device * dev){	struct device * parent = dev->parent;	if (parent)		klist_remove(&dev->knode_parent);	/* Notify the platform of the removal, in case they	 * need to do anything...	 */	if (platform_notify_remove)		platform_notify_remove(dev);	bus_remove_device(dev);	device_pm_remove(dev);	kobject_hotplug(&dev->kobj, KOBJ_REMOVE);	kobject_del(&dev->kobj);	if (parent)		put_device(parent);}