summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>2015-02-05 11:33:47 +0200
committerGrygorii Strashko <Grygorii.Strashko@linaro.org>2015-02-09 23:32:45 +0800
commitf78fd60caa886c5d67d1c095a06f4916e945fc2e (patch)
treea0244fd64e5201e3dc926e4d77f63a42e0749125
parentca36e4ebc209fe2b9545aa663645ea97089c6319 (diff)
[hib-new-ti] phy: omap-usb2: Fix build warning if !CONFIG_PM_SLEEP
Fix following build warning if CONFIG_PM_SLEEP is not set: drivers/phy/phy-omap-usb2.c:406:12: warning: 'omap_usb2_suspend' defined but not used [-Wunused-function] static int omap_usb2_suspend(struct device *dev) ^ drivers/phy/phy-omap-usb2.c:423:12: warning: 'omap_usb2_resume' defined but not used [-Wunused-function] static int omap_usb2_resume(struct device *dev) ^ Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
-rw-r--r--drivers/phy/phy-omap-usb2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c
index 5786792b9c8..87830cb1593 100644
--- a/drivers/phy/phy-omap-usb2.c
+++ b/drivers/phy/phy-omap-usb2.c
@@ -403,6 +403,7 @@ static int omap_usb2_runtime_resume(struct device *dev)
}
#endif
+#ifdef CONFIG_PM_SLEEP
static int omap_usb2_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
@@ -440,6 +441,7 @@ static int omap_usb2_resume(struct device *dev)
return 0;
}
+#endif
static const struct dev_pm_ops omap_usb2_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(omap_usb2_suspend, omap_usb2_resume)