diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-12-18 03:34:13 +0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-12-22 01:01:05 +0400 |
commit | 35cd133c6130c1eb52806808abee9d62e6854a27 (patch) | |
tree | 2f06e7f0288b9d4a3785a202f6480928113d8d5c /drivers/eisa | |
parent | 9cf519d1c15fa05a538c2b3963c5f3903daf765a (diff) | |
download | linux-35cd133c6130c1eb52806808abee9d62e6854a27.tar.xz |
PM: Run the driver callback directly if the subsystem one is not there
Make the PM core execute driver PM callbacks directly if the
corresponding subsystem callbacks are not present.
There are three reasons for doing that. First, it reflects the
behavior of drivers/base/dd.c:really_probe() that runs the driver's
.probe() callback directly if the bus type's one is not defined, so
this change will remove one arbitrary difference between the PM core
and the remaining parts of the driver core. Second, it will allow
some subsystems, whose PM callbacks don't do anything except for
executing driver callbacks, to be simplified quite a bit by removing
those "forward-only" callbacks. Finally, it will allow us to remove
one level of indirection in the system suspend and resume code paths
where it is not necessary, which is going to lead to less debug noise
with initcall_debug passed in the kernel command line (messages won't
be printed for driverless devices whose subsystems don't provide
PM callbacks among other things).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/eisa')
0 files changed, 0 insertions, 0 deletions