Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10542
b: refs/heads/master
c: dbe9035
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent e9bab0e commit 23a0242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: b94dc6b58667a73eeaf5cfd9c9e90dcd98743c5b
refs/heads/master: dbe9035d4f690c44b55d3d0f1bc193e2c3fc57fa
3 changes: 2 additions & 1 deletion trunk/drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ int class_device_add(struct class_device *class_dev)
class_name);
}

kobject_hotplug(&class_dev->kobj, KOBJ_ADD);

/* notify any interfaces this device is now here */
if (parent) {
down(&parent->sem);
Expand All @@ -533,7 +535,6 @@ int class_device_add(struct class_device *class_dev)
class_intf->add(class_dev);
up(&parent->sem);
}
kobject_hotplug(&class_dev->kobj, KOBJ_ADD);

register_done:
if (error && parent)
Expand Down

0 comments on commit 23a0242

Please sign in to comment.