diff options
Diffstat (limited to 'drivers/dma/sh/usb-dmac.c')
-rw-r--r-- | drivers/dma/sh/usb-dmac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/sh/usb-dmac.c b/drivers/dma/sh/usb-dmac.c index f705798ce3eb..ebd8a5f398b0 100644 --- a/drivers/dma/sh/usb-dmac.c +++ b/drivers/dma/sh/usb-dmac.c | |||
@@ -673,6 +673,7 @@ static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, | |||
673 | * Power management | 673 | * Power management |
674 | */ | 674 | */ |
675 | 675 | ||
676 | #ifdef CONFIG_PM | ||
676 | static int usb_dmac_runtime_suspend(struct device *dev) | 677 | static int usb_dmac_runtime_suspend(struct device *dev) |
677 | { | 678 | { |
678 | struct usb_dmac *dmac = dev_get_drvdata(dev); | 679 | struct usb_dmac *dmac = dev_get_drvdata(dev); |
@@ -690,6 +691,7 @@ static int usb_dmac_runtime_resume(struct device *dev) | |||
690 | 691 | ||
691 | return usb_dmac_init(dmac); | 692 | return usb_dmac_init(dmac); |
692 | } | 693 | } |
694 | #endif /* CONFIG_PM */ | ||
693 | 695 | ||
694 | static const struct dev_pm_ops usb_dmac_pm = { | 696 | static const struct dev_pm_ops usb_dmac_pm = { |
695 | SET_RUNTIME_PM_OPS(usb_dmac_runtime_suspend, usb_dmac_runtime_resume, | 697 | SET_RUNTIME_PM_OPS(usb_dmac_runtime_suspend, usb_dmac_runtime_resume, |