]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: shdmac: use SET_RUNTIME_PM_OPS()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 20 Jan 2015 21:09:46 +0000 (00:09 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 12 Feb 2015 07:22:17 +0000 (12:52 +0530)
commit82bf90c62834842249c4f94535079f5cbec9014c
tree7f7974c660928ba1d485bfe84059dd07ced278be
parent0091b9d6c1ef2caab6cb3b6c0aa75f9948307856
dmaengine: shdmac: use SET_RUNTIME_PM_OPS()

Use SET_RUNTIME_PM_OPS() to initialize the runtime PM method pointers in the
'struct dev_pm_ops';  since that macro doesn't  do anything  if CONFIG_PM is
not defined, we have  to move #ifdef up to also cover the runtime PM methods
in order to avoid compilation warnings.

Based on orignal 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>
drivers/dma/sh/shdmac.c