aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRakib Mullick <rakib.mullick@gmail.com>2011-03-06 06:26:10 -0500
committerVinod Koul <vinod.koul@intel.com>2011-03-06 14:56:50 -0500
commit0b863b333f529c7ddd8bee58e6696a7254417a05 (patch)
tree4f25d8bd9fa20d6d9f4b60ef8dc8675c4b2cbeaa /drivers
parent29782da5f0206335e2325508ba4fee0d624ddab6 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/pch_dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index b1dfba7e37b..8d8fef1480a 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -693,6 +693,7 @@ static irqreturn_t pd_irq(int irq, void *devid)
693 return ret; 693 return ret;
694} 694}
695 695
696#ifdef CONFIG_PM
696static void pch_dma_save_regs(struct pch_dma *pd) 697static void pch_dma_save_regs(struct pch_dma *pd)
697{ 698{
698 struct pch_dma_chan *pd_chan; 699 struct pch_dma_chan *pd_chan;
@@ -770,6 +771,7 @@ static int pch_dma_resume(struct pci_dev *pdev)
770 771
771 return 0; 772 return 0;
772} 773}
774#endif
773 775
774static int __devinit pch_dma_probe(struct pci_dev *pdev, 776static int __devinit pch_dma_probe(struct pci_dev *pdev,
775 const struct pci_device_id *id) 777 const struct pci_device_id *id)