summaryrefslogtreecommitdiff
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-09-14 21:36:09 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-09-14 21:36:09 -0700
commitdb062d4a6fefc23b61c0315ac286cfeae0791329 (patch)
treeab6167af86dfd63c0d871b50558e9a215dd4393d /lib/kobject.c
parent04bf582d34faefd76101c16033d00dad974d7c2d (diff)
kevent: standardize on the event types
This prevents any potential typos from happening. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'lib/kobject.c')
-rw-r--r--lib/kobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index 4bc028f1abdf..d623f0575f23 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -186,7 +186,7 @@ int kobject_add(struct kobject * kobj)
if (parent)
kobject_put(parent);
} else {
- kobject_hotplug("add", kobj);
+ kobject_hotplug(kobj, KOBJ_ADD);
}
return error;
@@ -300,7 +300,7 @@ int kobject_rename(struct kobject * kobj, char *new_name)
void kobject_del(struct kobject * kobj)
{
- kobject_hotplug("remove", kobj);
+ kobject_hotplug(kobj, KOBJ_REMOVE);
sysfs_remove_dir(kobj);
unlink(kobj);
}