git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
drivers
/
base
/
power
/
shutdown.c
diff --git
a/drivers/base/power/shutdown.c
b/drivers/base/power/shutdown.c
index
6725ffa
..
d1e023f
100644
(file)
--- a/
drivers/base/power/shutdown.c
+++ b/
drivers/base/power/shutdown.c
@@
-1,9
+1,9
@@
/*
* shutdown.c - power management functions for the device tree.
/*
* shutdown.c - power management functions for the device tree.
- *
+ *
* Copyright (c) 2002-3 Patrick Mochel
* 2002-3 Open Source Development Lab
* Copyright (c) 2002-3 Patrick Mochel
* 2002-3 Open Source Development Lab
- *
+ *
* This file is released under the GPLv2
*
*/
* This file is released under the GPLv2
*
*/
@@
-14,7
+14,7
@@
#include "power.h"
#include "power.h"
-#define to_dev(node) container_of(node,
struct device,
kobj.entry)
+#define to_dev(node) container_of(node,
struct device,
kobj.entry)
extern struct subsystem devices_subsys;
extern struct subsystem devices_subsys;
@@
-29,7
+29,7
@@
int device_detach_shutdown(struct device * dev)
dev->driver->shutdown(dev);
return 0;
}
dev->driver->shutdown(dev);
return 0;
}
- return dpm_runtime_suspend(dev,dev->detach_state);
+ return dpm_runtime_suspend(dev,
dev->detach_state);
}
}
@@
-38,8
+38,8
@@
int device_detach_shutdown(struct device * dev)
* down last and resume them first. That way, we don't do anything stupid like
* shutting down the interrupt controller before any devices..
*
* down last and resume them first. That way, we don't do anything stupid like
* shutting down the interrupt controller before any devices..
*
- * Note that there are not different stages for power management calls -
- * they only get one called once when interrupts are disabled.
+ * Note that there are not different stages for power management calls -
+ * they only get one called once when interrupts are disabled.
*/
extern int sysdev_shutdown(void);
*/
extern int sysdev_shutdown(void);
@@
-50,10
+50,10
@@
extern int sysdev_shutdown(void);
void device_shutdown(void)
{
struct device * dev;
void device_shutdown(void)
{
struct device * dev;
-
+
down_write(&devices_subsys.rwsem);
down_write(&devices_subsys.rwsem);
- list_for_each_entry_reverse(dev,
&devices_subsys.kset.list,
kobj.entry) {
- pr_debug("shutting down %s: ",dev->bus_id);
+ list_for_each_entry_reverse(dev,
&devices_subsys.kset.list,
kobj.entry) {
+ pr_debug("shutting down %s: ",
dev->bus_id);
if (dev->driver && dev->driver->shutdown) {
pr_debug("Ok\n");
dev->driver->shutdown(dev);
if (dev->driver && dev->driver->shutdown) {
pr_debug("Ok\n");
dev->driver->shutdown(dev);