]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: pci: fix build warning on !PM_SLEEP
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 7 Sep 2016 10:39:37 +0000 (13:39 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 7 Sep 2016 12:37:36 +0000 (15:37 +0300)
commit056c0208496c301d7d83009231e16453691bfe59
treee00f6e1987304e862c4a58cc6fceba27cde2d736
parent592d7593f1300f08ec3054b69f936b54277fd2b5
usb: dwc3: pci: fix build warning on !PM_SLEEP

When building a kernel with CONFIG_PM_SLEEP=n, we
get the following warning:

drivers/usb/dwc3/dwc3-pci.c:253:12: warning: 'dwc3_pci_pm_dummy' defined but not used

In order to fix this, we should only define
dwc3_pci_pm_dummy() when CONFIG_PM_SLEEP is defined.

Fixes: 0c6e7c32a847 ("usb: dwc3: pci: runtime_resume child device")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-pci.c