]> git.hungrycats.org Git - linux/commit
[power] Move suspend()/resume() methods.
authorPatrick Mochel <mochel@osdl.org>
Tue, 19 Aug 2003 16:36:46 +0000 (09:36 -0700)
committerPatrick Mochel <mochel@osdl.org>
Tue, 19 Aug 2003 16:36:46 +0000 (09:36 -0700)
commit0d045e1fa51a9686c2a0aba434dd2b0039a9aa3d
treeecc14b1e8e85ab5865f3dad96f05cd43f770b9b6
parent54050a4e1b5d6e97513237052c796ccb97fd90d9
[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.
drivers/base/power/resume.c
drivers/base/power/suspend.c
include/linux/device.h
kernel/power/main.c