diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-08-19 09:36:46 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-08-19 09:36:46 -0700 |
| commit | 0d045e1fa51a9686c2a0aba434dd2b0039a9aa3d (patch) | |
| tree | ecc14b1e8e85ab5865f3dad96f05cd43f770b9b6 /kernel/power | |
| parent | 54050a4e1b5d6e97513237052c796ccb97fd90d9 (diff) | |
[power] Move suspend()/resume() methods.
Instead of putting them in struct device_driver (which few, if any drivers
use directly), put them in the controlling bus_type of the device (which
are currently responsible for claiming the methods and forwarding the calls
to the bus-specific driver anyway).
This will save 8 bytes per driver instance, which isn't that much, but it's
something. It also makes it more obvious to the reader what is going on.
And, it makes for easier bus-level defaults in the case the device has no
driver attached.
The old calls remain until all instances have been fixed up.
Diffstat (limited to 'kernel/power')
| -rw-r--r-- | kernel/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 4d1476ba8156..422d5131fbf6 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -118,7 +118,7 @@ static int power_down(u32 mode) int error = 0; local_irq_save(flags); - device_pm_power_down(); + device_pm_power_down(PM_SUSPEND_DISK); switch(mode) { case PM_DISK_PLATFORM: error = pm_ops->enter(PM_SUSPEND_DISK); |
