[PATCH 1/3] Driver Core: restore comment in kobject_uevent.c
From: Greg KH (greg_at_kroah.com)
Date: 12/03/04
- Previous message: Greg KH: "[PATCH 3/3] Add documentation about why the in-kernel api is the way it is."
- Next in thread: Greg KH: "[PATCH 2/3] sysfs: fix sysfs_dir_close memory leak"
- Reply: Greg KH: "[PATCH 2/3] sysfs: fix sysfs_dir_close memory leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 3 Dec 2004 12:00:04 -0800 To: torvalds@osdl.org, akpm@osdl.org
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
--- 1.6/drivers/base/class_simple.c 2004-06-10 08:34:24 +02:00
+++ edited/drivers/base/class_simple.c 2004-11-26 20:11:21 +01:00
@@ -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, ...)
===== lib/kobject_uevent.c 1.16 vs edited =====
--- 1.16/lib/kobject_uevent.c 2004-11-12 12:50:24 +01:00
+++ edited/lib/kobject_uevent.c 2004-11-26 20:19:53 +01:00
@@ -205,6 +205,8 @@ void kobject_hotplug(struct kobject *kob
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Greg KH: "[PATCH 3/3] Add documentation about why the in-kernel api is the way it is."
- Next in thread: Greg KH: "[PATCH 2/3] sysfs: fix sysfs_dir_close memory leak"
- Reply: Greg KH: "[PATCH 2/3] sysfs: fix sysfs_dir_close memory leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|