[PATCH] Driver core: Use klist_del() instead of klist_remove().

Use klist_del() instead of klist_remove() when unregistering devices.
This will prevent a deadlock when executing a recursive unregister using
device_for_each_child().

Signed-off-by Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Patrick Mochel 2005-06-24 08:39:33 -07:00 committed by Greg Kroah-Hartman
parent 23d3d602cb
commit d62c0f9fd2

View file

@ -333,7 +333,7 @@ void device_del(struct device * dev)
struct device * parent = dev->parent;
if (parent)
klist_remove(&dev->knode_parent);
klist_del(&dev->knode_parent);
/* Notify the platform of the removal, in case they
* need to do anything...