[PATCH] Driver core: Use klist_del() instead of klist_remove().
authorPatrick Mochel <mochel@digitalimplant.org>
Fri, 24 Jun 2005 15:39:33 +0000 (08:39 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jun 2005 05:48:05 +0000 (22:48 -0700)
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>
drivers/base/core.c

index 86d7975..efe03a0 100644 (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...