Commit 5072cfc4 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <balbi@ti.com>
parent d9261898
...@@ -122,6 +122,7 @@ static int dwc3_of_simple_remove(struct platform_device *pdev) ...@@ -122,6 +122,7 @@ static int dwc3_of_simple_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM
static int dwc3_of_simple_runtime_suspend(struct device *dev) static int dwc3_of_simple_runtime_suspend(struct device *dev)
{ {
struct dwc3_of_simple *simple = dev_get_drvdata(dev); struct dwc3_of_simple *simple = dev_get_drvdata(dev);
...@@ -150,6 +151,7 @@ static int dwc3_of_simple_runtime_resume(struct device *dev) ...@@ -150,6 +151,7 @@ static int dwc3_of_simple_runtime_resume(struct device *dev)
return 0; return 0;
} }
#endif
static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = {
SET_RUNTIME_PM_OPS(dwc3_of_simple_runtime_suspend, SET_RUNTIME_PM_OPS(dwc3_of_simple_runtime_suspend,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment