Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25763
b: refs/heads/master
c: a143889
h: refs/heads/master
i:
  25761: cf9ab10
  25759: d50c085
v: v3
  • Loading branch information
Jayachandran C authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent e5a53fc commit b422bc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: d4d7e5dffc4844ef51fe11f497bd774c04413a00
refs/heads/master: a14388904ca67197c9a531dba2358d8131697865
13 changes: 6 additions & 7 deletions trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,13 @@ int class_device_add(struct class_device *class_dev)
kobject_uevent(&class_dev->kobj, KOBJ_ADD);

/* notify any interfaces this device is now here */
if (parent_class) {
down(&parent_class->sem);
list_add_tail(&class_dev->node, &parent_class->children);
list_for_each_entry(class_intf, &parent_class->interfaces, node)
if (class_intf->add)
class_intf->add(class_dev, class_intf);
up(&parent_class->sem);
down(&parent_class->sem);
list_add_tail(&class_dev->node, &parent_class->children);
list_for_each_entry(class_intf, &parent_class->interfaces, node) {
if (class_intf->add)
class_intf->add(class_dev, class_intf);
}
up(&parent_class->sem);

register_done:
if (error) {
Expand Down

0 comments on commit b422bc5

Please sign in to comment.