diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-06-15 18:02:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-01 07:31:29 -0400 |
commit | 0b589741b8b83a33e25fb32bb714ea1b972af5aa (patch) | |
tree | 40fb1a027166ad3da78848174ec644bf004ad20e /drivers/ata/pata_ns87410.c | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
PM / Domains: Use subsystem runtime suspend/resume callbacks by default
Currently, the default "save state" and "restore state" routines
for generic PM domains, pm_genpd_default_save_state() and
pm_genpd_default_restore_state(), respectively, only use runtime PM
callbacks provided by device drivers, but in general those callbacks
need not provide the entire necessary functionality. Namely, in
general it may be necessary to execute subsystem (i.e. device type,
device class or bus type) callbacks that will carry out all of the
necessary operations.
For this reason, modify pm_genpd_default_save_state() and
pm_genpd_default_restore_state() to execute subsystem callbacks,
if they are provided, and fall back to driver callbacks otherwise.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/ata/pata_ns87410.c')
0 files changed, 0 insertions, 0 deletions