Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=00ed8e3dda47f8421b11da17e353d7db8c878121
Commit:     00ed8e3dda47f8421b11da17e353d7db8c878121
Parent:     c58b8e4a25a1ba347a0e5d21984c97bd296f1691
Author:     Dmitriy Monakhov <[EMAIL PROTECTED]>
AuthorDate: Sun Mar 11 15:36:19 2007 +0300
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 10:57:27 2007 -0700

    driver core: fix device_add error path
    
     - At the moment we jump here device was't added to
       dev->class->devices list yet.
    
    Signed-off-by: Monakhov Dmitriy <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/base/core.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index d7fcf82..db3a151 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -677,15 +677,6 @@ int device_add(struct device *dev)
 #endif
                        sysfs_remove_link(&dev->kobj, "device");
                }
-
-               down(&dev->class->sem);
-               /* notify any interfaces that the device is now gone */
-               list_for_each_entry(class_intf, &dev->class->interfaces, node)
-                       if (class_intf->remove_dev)
-                               class_intf->remove_dev(dev, class_intf);
-               /* remove the device from the class list */
-               list_del_init(&dev->node);
-               up(&dev->class->sem);
        }
  ueventattrError:
        device_remove_file(dev, &dev->uevent_attr);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to