Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311
b: refs/heads/master
c: 18c3d52
h: refs/heads/master
i:
  309: 58698c4
  307: 4415a59
  303: c025114
v: v3
  • Loading branch information
kay.sievers@vrfy.org authored and Greg KH committed Apr 19, 2005
1 parent c8c9691 commit 4a57dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b558637b0efc6ab3f3ca08f0b9cc0191665e9db
refs/heads/master: 18c3d5271b472c096adfc856e107c79f6fd30d7d
7 changes: 3 additions & 4 deletions trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ int kobject_add(struct kobject * kobj)
unlink(kobj);
if (parent)
kobject_put(parent);
} else {
kobject_hotplug(kobj, KOBJ_ADD);
}

return error;
Expand All @@ -207,7 +205,8 @@ int kobject_register(struct kobject * kobj)
printk("kobject_register failed for %s (%d)\n",
kobject_name(kobj),error);
dump_stack();
}
} else
kobject_hotplug(kobj, KOBJ_ADD);
} else
error = -EINVAL;
return error;
Expand Down Expand Up @@ -301,7 +300,6 @@ int kobject_rename(struct kobject * kobj, char *new_name)

void kobject_del(struct kobject * kobj)
{
kobject_hotplug(kobj, KOBJ_REMOVE);
sysfs_remove_dir(kobj);
unlink(kobj);
}
Expand All @@ -314,6 +312,7 @@ void kobject_del(struct kobject * kobj)
void kobject_unregister(struct kobject * kobj)
{
pr_debug("kobject %s: unregistering\n",kobject_name(kobj));
kobject_hotplug(kobj, KOBJ_REMOVE);
kobject_del(kobj);
kobject_put(kobj);
}
Expand Down

0 comments on commit 4a57dbd

Please sign in to comment.