dmaengine: usb-dmac: Protect PM-only functions to kill warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 26 Apr 2015 09:53:54 +0000 (11:53 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 27 Apr 2015 03:06:02 +0000 (08:36 +0530)
commit8ad31bf45db1c4a8f400cbc10400ce9fc0bed227
tree8d0a0480b704243c9e5a87134d1b26de77b69c5c
parentb787f68c36d49bb1d9236f403813641efa74a031
dmaengine: usb-dmac: Protect PM-only functions to kill warning

If CONFIG_PM=n:

    drivers/dma/sh/usb-dmac.c:677: warning: ‘usb_dmac_runtime_suspend’ defined but not used
    drivers/dma/sh/usb-dmac.c:688: warning: ‘usb_dmac_runtime_resume’ defined but not used

Protect the unused functions by #ifdef CONFIG_PM to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/usb-dmac.c