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: f6c274e11e3b ("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>

Changed files
+3 -1
drivers
usb
dwc3
+3 -1
drivers/usb/dwc3/dwc3-pci.c
··· 249 249 250 250 return pm_runtime_get(&dwc3->dev); 251 251 } 252 + #endif /* CONFIG_PM */ 252 253 254 + #ifdef CONFIG_PM_SLEEP 253 255 static int dwc3_pci_pm_dummy(struct device *dev) 254 256 { 255 257 /* ··· 264 262 */ 265 263 return 0; 266 264 } 267 - #endif /* CONFIG_PM */ 265 + #endif /* CONFIG_PM_SLEEP */ 268 266 269 267 static struct dev_pm_ops dwc3_pci_dev_pm_ops = { 270 268 SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_pm_dummy, dwc3_pci_pm_dummy)