Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1404
b: refs/heads/master
c: 6df16d0
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 25, 2005
1 parent cd1a99d commit d7c5f98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 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: 816242da3735957bee99aeba40aa60c4f120a101
refs/heads/master: 6df16d0c35b9c0d3627f30c106e6142d3d12662b
4 changes: 2 additions & 2 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ int device_add(struct device *dev)

if ((error = kobject_add(&dev->kobj)))
goto Error;
kobject_hotplug(&dev->kobj, KOBJ_ADD);
if ((error = device_pm_add(dev)))
goto PMError;
if ((error = bus_add_device(dev)))
Expand All @@ -257,14 +258,13 @@ int device_add(struct device *dev)
/* notify platform of device entry */
if (platform_notify)
platform_notify(dev);

kobject_hotplug(&dev->kobj, KOBJ_ADD);
Done:
put_device(dev);
return error;
BusError:
device_pm_remove(dev);
PMError:
kobject_hotplug(&dev->kobj, KOBJ_REMOVE);
kobject_del(&dev->kobj);
Error:
if (parent)
Expand Down
4 changes: 1 addition & 3 deletions trunk/include/linux/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,7 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
wait_queue_t name = { \
.task = current, \
.func = autoremove_wake_function, \
.task_list = { .next = &(name).task_list, \
.prev = &(name).task_list, \
}, \
.task_list = LIST_HEAD_INIT((name).task_list), \
}

#define DEFINE_WAIT_BIT(name, word, bit) \
Expand Down

0 comments on commit d7c5f98

Please sign in to comment.