drivers, pch_dma: Fix warning when CONFIG_PM=n.
authorRakib Mullick <rakib.mullick@gmail.com>
Sun, 6 Mar 2011 11:26:10 +0000 (17:26 +0600)
committerVinod Koul <vinod.koul@intel.com>
Sun, 6 Mar 2011 19:56:50 +0000 (00:56 +0530)
commit0b863b333f529c7ddd8bee58e6696a7254417a05
tree4f25d8bd9fa20d6d9f4b60ef8dc8675c4b2cbeaa
parent29782da5f0206335e2325508ba4fee0d624ddab6
drivers, pch_dma: Fix warning when CONFIG_PM=n.

When CONFIG_PM=n, we get the following warning:

drivers/dma/pch_dma.c:741: warning: ‘pch_dma_suspend’ defined but not used
drivers/dma/pch_dma.c:755: warning: ‘pch_dma_resume’ defined but not used

To fix it, wrap pch_dma_{suspend,resume} and
pch_dma_{save,restore}_regs functions with CONFIG_PM.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pch_dma.c