]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0bd13d47ce1b1780dcc9005c16018599304f33c
tree8d0a0480b704243c9e5a87134d1b26de77b69c5c
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
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