]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Driver Core: restore comment in kobject_uevent.c
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 3 Dec 2004 04:40:41 +0000 (20:40 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Dec 2004 04:40:41 +0000 (20:40 -0800)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/class_simple.c
lib/kobject_uevent.c

index 3410636de0a500c42b0d12d083fc83a2a3d5db05..8a3b8fa7ed5bc47f1002f8d6187d01dc3a099bb3 100644 (file)
@@ -122,7 +122,7 @@ EXPORT_SYMBOL(class_simple_destroy);
  * be created, showing the dev_t for the device.  The pointer to the struct
  * class_device will be returned from the call.  Any further sysfs files that
  * might be required can be created using this pointer.
- * Note: the struct class_device passed to this function must have previously been
+ * Note: the struct class_simple passed to this function must have previously been
  * created with a call to class_simple_create().
  */
 struct class_device *class_simple_device_add(struct class_simple *cs, dev_t dev, struct device *device, const char *fmt, ...)
index d2977436281259855836f9726d3f2811decd3c69..5c78b2187ce2640da0fc5c0961cd2f9bd55b489f 100644 (file)
@@ -205,6 +205,8 @@ void kobject_hotplug(struct kobject *kobj, enum kobject_action action)
        static struct kset_hotplug_ops null_hotplug_ops;
        struct kset_hotplug_ops *hotplug_ops = &null_hotplug_ops;
 
+       /* If this kobj does not belong to a kset,
+          try to find a parent that does. */
        if (!top_kobj->kset && top_kobj->parent) {
                do {
                        top_kobj = top_kobj->parent;