Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75791
b: refs/heads/master
c: 37b0c02
h: refs/heads/master
i:
  75789: e48627f
  75787: 28260ac
  75783: 9aa3c4b
  75775: 83ddbd3
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent f8fdd4f commit 6cfa365
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 46 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: 822a89ed1ea0f7a2d8079307426fbeeac0370138
refs/heads/master: 37b0c020343080241984d978981d6caf877b278a
20 changes: 19 additions & 1 deletion trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,5 +1415,23 @@ int device_move(struct device *dev, struct device *new_parent)
put_device(dev);
return error;
}

EXPORT_SYMBOL_GPL(device_move);

/**
* device_shutdown - call ->shutdown() on each device to shutdown.
*/
void device_shutdown(void)
{
struct device * dev, *devn;

list_for_each_entry_safe_reverse(dev, devn, &devices_kset->list,
kobj.entry) {
if (dev->bus && dev->bus->shutdown) {
dev_dbg(dev, "shutdown\n");
dev->bus->shutdown(dev);
} else if (dev->driver && dev->driver->shutdown) {
dev_dbg(dev, "shutdown\n");
dev->driver->shutdown(dev);
}
}
}
1 change: 0 additions & 1 deletion trunk/drivers/base/power/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
obj-y := shutdown.o
obj-$(CONFIG_PM) += sysfs.o
obj-$(CONFIG_PM_SLEEP) += main.o
obj-$(CONFIG_PM_TRACE) += trace.o
Expand Down
43 changes: 0 additions & 43 deletions trunk/drivers/base/power/shutdown.c

This file was deleted.

0 comments on commit 6cfa365

Please sign in to comment.