diff options
author | Felipe Balbi <balbi@ti.com> | 2015-12-23 03:56:10 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-23 03:58:26 (GMT) |
commit | 5072cfc40a80cea3749fd3413b3896630d8c787e (patch) | |
tree | 54eda0ed1728e9e1743f0b7feecd6b827cc2a06a /drivers/usb | |
parent | d9261898a4b2c143c28568dc686a1becfc637a99 (diff) | |
download | linux-5072cfc40a80cea3749fd3413b3896630d8c787e.tar.xz |
usb: dwc3: of-simple: fix build warning on !PM
if we have a !PM kernel build, our runtime
suspend/resume callbacks will be left defined but
unused. Add a ifdef CONFIG_PM guard.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc3/dwc3-of-simple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 60c4c5a..9c9f741 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -122,6 +122,7 @@ static int dwc3_of_simple_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM static int dwc3_of_simple_runtime_suspend(struct device *dev) { struct dwc3_of_simple *simple = dev_get_drvdata(dev); @@ -150,6 +151,7 @@ static int dwc3_of_simple_runtime_resume(struct device *dev) return 0; } +#endif static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { SET_RUNTIME_PM_OPS(dwc3_of_simple_runtime_suspend, |