Skip to content

Commit

Permalink
drivers, pch_dma: Fix warning when CONFIG_PM=n.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rakib Mullick authored and Vinod Koul committed Mar 6, 2011
1 parent 29782da commit 0b863b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/pch_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ static irqreturn_t pd_irq(int irq, void *devid)
return ret;
}

#ifdef CONFIG_PM
static void pch_dma_save_regs(struct pch_dma *pd)
{
struct pch_dma_chan *pd_chan;
Expand Down Expand Up @@ -770,6 +771,7 @@ static int pch_dma_resume(struct pci_dev *pdev)

return 0;
}
#endif

static int __devinit pch_dma_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
Expand Down

0 comments on commit 0b863b3

Please sign in to comment.