diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-01-20 22:13:21 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-02-12 08:22:18 +0100 |
commit | bf44a4175e566c72ae2d01929f76a04a9e861e0d (patch) | |
tree | 6938a44a9251186e4096ba02f96b49f7058f2a02 /security | |
parent | dmaengine: shdmac: use SET_RUNTIME_PM_OPS() (diff) | |
download | linux-bf44a4175e566c72ae2d01929f76a04a9e861e0d.tar.xz linux-bf44a4175e566c72ae2d01929f76a04a9e861e0d.zip |
dmaengine: shdmac: extend PM methods
In order to make it possible to restore from hibernation not only in Linux but
also in e.g. U-Boot, we have to use sh_dmae_{suspend|resume}() for the {freeze|
thaw|restore}() PM methods. It's handy to achieve this with SIMPLE_DEV_PM_OPS()
macro; since that macro doesn't do anything when CONFIG_PM_SLEEP is undefined,
we don't need to #define sh_dmae_{suspend|resume} NULL anymore but we'll have to
enclose sh_dmae_{suspend|resume}() into the new #ifdef...
Based on original patch by Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions